diff options
author | Isaac Freund <mail@isaacfreund.com> | 2022-01-17 19:11:08 +0100 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2022-01-17 19:11:08 +0100 |
commit | 1bd0ea3a809bdba092ef051120bb6d32f79c0ffb (patch) | |
tree | c2201a3fe45ca1e5ab55db595050f155b65d0352 /include | |
parent | 5091118bed82394de5a151d658e895bb44059b61 (diff) |
foreign-toplevel: send enter if needed on output bind
Currently the output enter event is never sent if the client has not
yet bound the output, which happens every time the compositor creates a
new output.
To fix this, listen for the output bind event and inform clients as
if needed.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_foreign_toplevel_management_v1.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_foreign_toplevel_management_v1.h b/include/wlr/types/wlr_foreign_toplevel_management_v1.h index 6ea9d47f..d9030b2e 100644 --- a/include/wlr/types/wlr_foreign_toplevel_management_v1.h +++ b/include/wlr/types/wlr_foreign_toplevel_management_v1.h @@ -36,10 +36,13 @@ enum wlr_foreign_toplevel_handle_v1_state { struct wlr_foreign_toplevel_handle_v1_output { struct wl_list link; // wlr_foreign_toplevel_handle_v1::outputs - struct wl_listener output_destroy; struct wlr_output *output; - struct wlr_foreign_toplevel_handle_v1 *toplevel; + + // private state + + struct wl_listener output_bind; + struct wl_listener output_destroy; }; struct wlr_foreign_toplevel_handle_v1 { |