Commit b42c33b6 authored by Michel Dänzer's avatar Michel Dänzer
Browse files

xwayland: Call RRTellChanged if the RandR configuration may have changed

This makes sure RandR events are sent to interested clients as needed.
This was happening implicitly in some cases, but not in others, e.g. if
the root window size didn't change.

If this were to call RRTellChanged more often than necessary in some
cases, that should be harmless, as it only sends events if something
has actually changed since last time.

Should fix


* Call RRTellChanged at the very end of update_screen_size, just in
Reviewed-by: Olivier Fourdan's avatarOlivier Fourdan <>
(cherry picked from commit 204f10c2)
parent 96829a7b
......@@ -216,6 +216,8 @@ update_screen_size(struct xwl_output *xwl_output, int width, int height)
struct xwl_emulated_mode *
......@@ -674,6 +676,7 @@ xwl_output_create(struct xwl_screen *xwl_screen, uint32_t id)
RRCrtcGammaSetSize(xwl_output->randr_crtc, 256);
RROutputSetCrtcs(xwl_output->randr_output, &xwl_output->randr_crtc, 1);
RROutputSetConnection(xwl_output->randr_output, RR_Connected);
/* We want the output to be in the list as soon as created so we can
* use it when binding to the xdg-output protocol...
......@@ -717,6 +720,7 @@ xwl_output_remove(struct xwl_output *xwl_output)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment