just wtf is XXX supposed to be? It sounds like a pornographic thing.
This commit is contained in:
Guido Cella 2020-12-20 16:07:12 +01:00
parent 5ed227384b
commit 499cb2c2b6

16
dwl.c
View file

@ -499,7 +499,7 @@ arrange(Monitor *m)
{ {
if (m->lt[m->sellt]->arrange) if (m->lt[m->sellt]->arrange)
m->lt[m->sellt]->arrange(m); m->lt[m->sellt]->arrange(m);
/* XXX recheck pointer focus here... or in resize()? */ /* TODO recheck pointer focus here... or in resize()? */
} }
void void
@ -671,7 +671,7 @@ buttonpress(struct wl_listener *listener, void *data)
break; break;
case WLR_BUTTON_RELEASED: case WLR_BUTTON_RELEASED:
/* If you released any buttons, we exit interactive move/resize mode. */ /* If you released any buttons, we exit interactive move/resize mode. */
/* XXX should reset to the pointer focus's current setcursor */ /* TODO should reset to the pointer focus's current setcursor */
if (cursor_mode != CurNormal) { if (cursor_mode != CurNormal) {
wlr_xcursor_manager_set_cursor_image(cursor_mgr, wlr_xcursor_manager_set_cursor_image(cursor_mgr,
"left_ptr", cursor); "left_ptr", cursor);
@ -1251,13 +1251,13 @@ inputdevice(struct wl_listener *listener, void *data)
createpointer(device); createpointer(device);
break; break;
default: default:
/* XXX handle other input device types */ /* TODO handle other input device types */
break; break;
} }
/* We need to let the wlr_seat know what our capabilities are, which is /* We need to let the wlr_seat know what our capabilities are, which is
* communiciated to the client. In dwl we always have a cursor, even if * communiciated to the client. In dwl we always have a cursor, even if
* there are no pointer devices, so we always include that capability. */ * there are no pointer devices, so we always include that capability. */
/* XXX do we actually require a cursor? */ /* TODO do we actually require a cursor? */
uint32_t caps = WL_SEAT_CAPABILITY_POINTER; uint32_t caps = WL_SEAT_CAPABILITY_POINTER;
if (!wl_list_empty(&keyboards)) if (!wl_list_empty(&keyboards))
caps |= WL_SEAT_CAPABILITY_KEYBOARD; caps |= WL_SEAT_CAPABILITY_KEYBOARD;
@ -1879,7 +1879,7 @@ run(char *startup_cmd)
* cursor position, and set default cursor image */ * cursor position, and set default cursor image */
selmon = xytomon(cursor->x, cursor->y); selmon = xytomon(cursor->x, cursor->y);
/* XXX hack to get cursor to display in its initial location (100, 100) /* TODO hack to get cursor to display in its initial location (100, 100)
* instead of (0, 0) and then jumping. still may not be fully * instead of (0, 0) and then jumping. still may not be fully
* initialized, as the image/coordinates are not transformed for the * initialized, as the image/coordinates are not transformed for the
* monitor when displayed here */ * monitor when displayed here */
@ -1937,7 +1937,7 @@ setcursor(struct wl_listener *listener, void *data)
/* This event is raised by the seat when a client provides a cursor image */ /* This event is raised by the seat when a client provides a cursor image */
struct wlr_seat_pointer_request_set_cursor_event *event = data; struct wlr_seat_pointer_request_set_cursor_event *event = data;
/* If we're "grabbing" the cursor, don't use the client's image */ /* If we're "grabbing" the cursor, don't use the client's image */
/* XXX still need to save the provided surface to restore later */ /* TODO still need to save the provided surface to restore later */
if (cursor_mode != CurNormal) if (cursor_mode != CurNormal)
return; return;
/* This can be sent by any client, so we check to make sure this one is /* This can be sent by any client, so we check to make sure this one is
@ -1966,7 +1966,7 @@ setlayout(const Arg *arg)
selmon->sellt ^= 1; selmon->sellt ^= 1;
if (arg && arg->v) if (arg && arg->v)
selmon->lt[selmon->sellt] = (Layout *)arg->v; selmon->lt[selmon->sellt] = (Layout *)arg->v;
/* XXX change layout symbol? */ /* TODO change layout symbol? */
arrange(selmon); arrange(selmon);
} }
@ -1992,7 +1992,7 @@ setmon(Client *c, Monitor *m, unsigned int newtags)
return; return;
c->mon = m; c->mon = m;
/* XXX leave/enter is not optimal but works */ /* TODO leave/enter is not optimal but works */
if (oldmon) { if (oldmon) {
wlr_surface_send_leave(WLR_SURFACE(c), oldmon->wlr_output); wlr_surface_send_leave(WLR_SURFACE(c), oldmon->wlr_output);
arrange(oldmon); arrange(oldmon);