diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-04-11 21:33:15 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-04-13 17:00:06 +0000 |
commit | dec2565f2b6b0a723d08f025967ac8ff1b7ee756 (patch) | |
tree | 2fa23ab385cb629fed263dd69c37fdb1df12b622 /include/wlr | |
parent | 04aa44b4dfa3ee7a299240794f77c2ef2d55e6f3 (diff) |
xdg-toplevel: don't schedule configures on state requests
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_xdg_shell.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h index 48bfbb97..95c6ee6c 100644 --- a/include/wlr/types/wlr_xdg_shell.h +++ b/include/wlr/types/wlr_xdg_shell.h @@ -147,8 +147,16 @@ struct wlr_xdg_toplevel { char *app_id; struct { + // Note: as per xdg-shell protocol, the compositor has to + // handle state requests by sending a configure event, + // even if it didn't actually change the state. Therefore, + // every compositor implementing xdg-shell support *must* + // listen to these signals and schedule a configure event + // immediately or at some time in the future; not doing so + // is a protocol violation. struct wl_signal request_maximize; struct wl_signal request_fullscreen; + struct wl_signal request_minimize; struct wl_signal request_move; struct wl_signal request_resize; |