wlr-foreign: send output_enter on initialization

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.
This commit is contained in:
tokyo4j 2025-01-27 11:05:31 +09:00 committed by Consolatis
parent 01592d2633
commit 9a473f1848

View file

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