diff options
author | Stivvo <stivvo01@gmail.com> | 2020-10-14 17:28:51 +0200 |
---|---|---|
committer | Stivvo <stivvo01@gmail.com> | 2020-10-14 17:30:10 +0200 |
commit | c98686cf1618da2e581f46d4723016365606b591 (patch) | |
tree | 09ff5a529056db3766489e7fda0cff8bdc622eee | |
parent | 0ad8473a57708b0c7145a4e6ae8590fb6a035701 (diff) |
Quit fullscreen on new x11 window
After the removal of quitfullscreen() dwl wouldn't compile widh xwayland
enabled because createnotifyx11 was still using the old function
-rw-r--r-- | dwl.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -588,7 +588,6 @@ createnotify(struct wl_listener *listener, void *data) if (xdg_surface->role != WLR_XDG_SURFACE_ROLE_TOPLEVEL) return; - wl_list_for_each(c, &clients, link) if (c->isfullscreen && VISIBLEON(c, c->mon)) setfullscreen(c, 0); @@ -1242,7 +1241,7 @@ renderclients(Monitor *m, struct timespec *now) wlr_output_layout_output_coords(output_layout, m->wlr_output, &ox, &oy); - if (c->isfullscreen || borderpx == 0) + if (c->isfullscreen) goto render; w = surface->current.width; @@ -1866,13 +1865,15 @@ createnotifyx11(struct wl_listener *listener, void *data) { struct wlr_xwayland_surface *xwayland_surface = data; Client *c; + wl_list_for_each(c, &clients, link) + if (c->isfullscreen && VISIBLEON(c, c->mon)) + setfullscreen(c, 0); /* Allocate a Client for this surface */ c = xwayland_surface->data = calloc(1, sizeof(*c)); c->surface.xwayland = xwayland_surface; c->type = xwayland_surface->override_redirect ? X11Unmanaged : X11Managed; c->bw = borderpx; - quitfullscreen(c); /* Listen to the various events it can emit */ c->map.notify = maprequest; |