]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xwayland: exclude unfocusable views from wlr-foreign-toplevel
authorJohn Lindgren <john@jlindgren.net>
Sun, 17 Mar 2024 20:16:24 +0000 (16:16 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 17 Mar 2024 20:26:38 +0000 (20:26 +0000)
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).

src/xwayland.c

index 398de0c29bfd0dff43d6fd97ddca1dc8bd372635..358de1b3cbc7498b4f9b2458a51b57e32f73543c 100644 (file)
@@ -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);
        }