From a52ec42b9ed2376642d95678983e421c48b81738 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 20 Dec 2015 15:01:35 +0200 Subject: [PATCH] Refresh the screen on property changes There might be no other events if properties are changed non-interactively, e.g. from a ~/.xsession script. --- source/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/main.c b/source/main.c index ea508d2..379b089 100644 --- a/source/main.c +++ b/source/main.c @@ -1322,9 +1322,15 @@ void process_property_event(Compositor *compositor, XPropertyEvent *event) return; if(event->atom==compositor->correction_atom) + { update_geometry_correction(compositor, screen); + mark_dirty(compositor, screen); + } else if(event->atom==compositor->root_pmap_atom) + { update_root_pixmap(compositor, screen); + mark_dirty(compositor, screen); + } } void process_selection_request_event(Compositor *compositor, XSelectionRequestEvent *event) -- 2.43.0