[Xfce4-commits] <xfce4-notifyd:master> Sync the display and the windows before computing the work area.
Jérôme Guelfucci
noreply at xfce.org
Wed Nov 10 19:24:03 CET 2010
Updating branch refs/heads/master
to 82f087355e7eb169a5c7c90139e8db9abd9f93a5 (commit)
from 616ca760cb8bc549e538fe6a6d8aec2702c1d008 (commit)
commit 82f087355e7eb169a5c7c90139e8db9abd9f93a5
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Wed Nov 10 19:22:13 2010 +0100
Sync the display and the windows before computing the work area.
xfce4-notifyd/xfce-notify-daemon.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
index 451b19f..c159b6b 100644
--- a/xfce4-notifyd/xfce-notify-daemon.c
+++ b/xfce4-notifyd/xfce-notify-daemon.c
@@ -461,6 +461,7 @@ xfce_notify_daemon_get_workarea(GdkScreen *screen,
guint monitor_num,
GdkRectangle *workarea)
{
+ GdkDisplay *display;
GList *windows_list, *l;
gint monitor_xoff, monitor_yoff;
@@ -470,6 +471,11 @@ xfce_notify_daemon_get_workarea(GdkScreen *screen,
monitor_xoff = workarea->x;
monitor_yoff = workarea->y;
+ /* Sync the display */
+ display = gdk_screen_get_display(screen);
+ gdk_display_sync(display);
+ gdk_window_process_all_updates();
+
windows_list = gdk_screen_get_window_stack(screen);
for(l = g_list_first(windows_list); l != NULL; l = g_list_next(l)) {
More information about the Xfce4-commits
mailing list