summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/clock/clock.c5
-rw-r--r--applets/fish/fish.c4
-rw-r--r--applets/notification_area/system-tray/fixedtip.c4
3 files changed, 7 insertions, 6 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index a1c16159..0a325b63 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -914,8 +914,9 @@ position_calendar_popup (ClockData *cd)
monitors */
monitor.x = 0;
monitor.y = 0;
- monitor.width = gdk_screen_get_width (screen);
- monitor.height = gdk_screen_get_height (screen);
+
+ gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
+ &monitor.width, &monitor.height);
}
/* Based on panel orientation, position the popup.
diff --git a/applets/fish/fish.c b/applets/fish/fish.c
index f434f8a5..95faf402 100644
--- a/applets/fish/fish.c
+++ b/applets/fish/fish.c
@@ -856,8 +856,8 @@ static void display_fortune_dialog(FishApplet* fish)
screen = gtk_widget_get_screen (GTK_WIDGET (fish));
- 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);
gtk_window_set_default_size (GTK_WINDOW (fish->fortune_dialog),
MIN (600, screen_width * 0.9),
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