Skip to content

Commit

Permalink
cs-screen-x11.c: gdk_flush before retrieving updated monitor and
Browse files Browse the repository at this point in the history
screen information.  This is done in stage.py when responding to
our CsScreen's signals, but we should do it here before rebuilding
the monitor info for sharing with the stage.
  • Loading branch information
mtwebster committed May 25, 2018
1 parent d818350 commit 23e3c71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libcscreensaver/cs-screen-x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ on_monitors_changed (GdkScreen *gdk_screen, gpointer user_data)

screen = CS_SCREEN (user_data);

gdk_flush ();

old_monitor_infos = screen->monitor_infos;

reload_monitor_infos (screen);
Expand All @@ -394,6 +396,8 @@ on_screen_changed (GdkScreen *gdk_screen, gpointer user_data)

screen = CS_SCREEN (user_data);

gdk_flush ();

reload_screen_info (screen);

g_signal_emit (screen, signals[SCREEN_CHANGED], 0);
Expand Down

0 comments on commit 23e3c71

Please sign in to comment.