]> git.mdlowis.com Git - proto/labwc.git/commitdiff
wlr-foreign: send output_enter on initialization
authortokyo4j <hrak1529@gmail.com>
Mon, 27 Jan 2025 02:05:31 +0000 (11:05 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 27 Jan 2025 12:18:29 +0000 (13:18 +0100)
This fixes a bug that output_enter events are not sent when a Slack
window running in background is re-mapped, which caused missing taskbar
items in Waybar when it's configured to show windows per output.

src/foreign-toplevel/wlr-foreign.c

index 5390803155f727a28c326f4b340ddc957e67a365..76eb01e5ad2ae9d2df6e81633c22b96a06649acf 100644 (file)
@@ -240,6 +240,7 @@ wlr_foreign_toplevel_init(struct foreign_toplevel *toplevel)
        handle_new_title(&wlr_toplevel->on_view.new_title, NULL);
        handle_maximized(&wlr_toplevel->on_view.maximized, NULL);
        handle_fullscreened(&wlr_toplevel->on_view.fullscreened, NULL);
+       handle_new_outputs(&wlr_toplevel->on_view.new_outputs, NULL);
 
        /* Client side requests */
        CONNECT_SIGNAL(wlr_toplevel->handle, &wlr_toplevel->on, request_maximize);