Skip to content
Snippets Groups Projects
Commit 2ec7c168 authored by zhoulei's avatar zhoulei Committed by Morose
Browse files

xwayland: Change randr_output status when call xwl_output_remove()


The function xwl_output_remove() is called when removing a monitor, but
the actual status of the RandR output does not change.

So, when RRTellChanged() is called from update_screen_size(), it won't
have the output connection status up to date in the RandR event
RROutputChangeNotifyEvent and X11 applications relying on that event
like Qt will fail to emit their signal QGuiApplication::screenRemoved.

To avoid that issue, make sure to mark the RandR output as disconnected
prior to call xwl_output_remove().

Fix commit 204f10c2 ("xwayland: Call RRTellChanged if the RandR configuration may have changed")

Signed-off-by: default avatarzhoulei <zhoulei@kylinos.cn>
Signed-off-by: default avatarMorose <chenlinxiang@kylinos.cn>
Acked-by: default avatarMichel Dänzer <mdaenzer@redhat.com>
Reviewed-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
parent cf30498f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment