mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
clarify createnotifyx11 function
This commit is contained in:
parent
c4cf78aadb
commit
8b7cc8ada6
1 changed files with 8 additions and 4 deletions
12
dwl.c
12
dwl.c
|
@ -574,14 +574,18 @@ createnotifyx11(struct wl_listener *listener, void *data)
|
|||
|
||||
/* Listen to the various events it can emit */
|
||||
if (!xwayland_surface->override_redirect) {
|
||||
c->map.notify = maprequest;
|
||||
c->unmap.notify = unmapnotify;
|
||||
/* Only "managed" windows can be activated */
|
||||
c->activate.notify = activate;
|
||||
wl_signal_add(&xwayland_surface->events.request_activate, &c->activate);
|
||||
} else {
|
||||
c->map.notify = maprequestindependent;
|
||||
c->unmap.notify = unmapnotifyindependent;
|
||||
}
|
||||
c->map.notify = xwayland_surface->override_redirect ? maprequestindependent : maprequest;
|
||||
wl_signal_add(&xwayland_surface->events.map, &c->map);
|
||||
c->unmap.notify = xwayland_surface->override_redirect ? unmapnotifyindependent : unmapnotify;
|
||||
wl_signal_add(&xwayland_surface->events.unmap, &c->unmap);
|
||||
c->destroy.notify = destroynotify;
|
||||
wl_signal_add(&xwayland_surface->events.map, &c->map);
|
||||
wl_signal_add(&xwayland_surface->events.unmap, &c->unmap);
|
||||
wl_signal_add(&xwayland_surface->events.destroy, &c->destroy);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue