From: John Lindgren Date: Sun, 17 Mar 2024 20:16:24 +0000 (-0400) Subject: xwayland: exclude unfocusable views from wlr-foreign-toplevel X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=7e419f7584f6e6c047204612119733d4a85e005f;p=proto%2Flabwc.git xwayland: exclude unfocusable views from wlr-foreign-toplevel These views (notifications, floating toolbars, etc.) should not be shown in taskbars/docks/etc. (which are the stated use-case of the wlr-foreign-toplevel protocol). --- diff --git a/src/xwayland.c b/src/xwayland.c index 398de0c2..358de1b3 100644 --- a/src/xwayland.c +++ b/src/xwayland.c @@ -654,7 +654,12 @@ xwayland_view_map(struct view *view) } view_maximize(view, axis, /*store_natural_geometry*/ true); - if (!view->toplevel.handle) { + /* + * Exclude unfocusable views from wlr-foreign-toplevel. These + * views (notifications, floating toolbars, etc.) should not be + * shown in taskbars/docks/etc. + */ + if (!view->toplevel.handle && view_is_focusable(view)) { init_foreign_toplevel(view); }