summaryrefslogtreecommitdiff
path: root/applets/notification_area
diff options
context:
space:
mode:
Diffstat (limited to 'applets/notification_area')
-rw-r--r--applets/notification_area/system-tray/fixedtip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/notification_area/system-tray/fixedtip.c b/applets/notification_area/system-tray/fixedtip.c
index 6356de9b..eca42a3f 100644
--- a/applets/notification_area/system-tray/fixedtip.c
+++ b/applets/notification_area/system-tray/fixedtip.c
@@ -158,8 +158,8 @@ na_fixed_tip_position (NaFixedTip *fixedtip)
parent_width = gdk_window_get_width(parent_window);
parent_height = gdk_window_get_height(parent_window);
- screen_width = gdk_screen_get_width (screen);
- screen_height = gdk_screen_get_height (screen);
+ gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
+ &screen_width, &screen_height);
/* pad between panel and message window */
#define PAD 5