xdg-toplevel: don't schedule configures on state requests

This commit is contained in:
Kirill Primak 2022-04-11 21:33:15 +03:00 committed by Simon Ser
parent 04aa44b4df
commit dec2565f2b
3 changed files with 38 additions and 4 deletions

View file

@ -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;