diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/clock/clock.c | 5 | ||||
-rw-r--r-- | applets/fish/fish.c | 5 | ||||
-rw-r--r-- | applets/notification_area/system-tray/fixedtip.c | 5 |
3 files changed, 8 insertions, 7 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c index 622e3adf..0076c780 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -925,9 +925,8 @@ position_calendar_popup (ClockData *cd) monitors */ monitor.x = 0; monitor.y = 0; - - gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, - &monitor.width, &monitor.height); + monitor.width = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)); + monitor.height = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)); } /* Based on panel orientation, position the popup. diff --git a/applets/fish/fish.c b/applets/fish/fish.c index 56def60c..dd18c508 100644 --- a/applets/fish/fish.c +++ b/applets/fish/fish.c @@ -37,6 +37,7 @@ #include <glib/gi18n.h> #include <glib-object.h> #include <gtk/gtk.h> +#include <gdk/gdkx.h> #include <gdk/gdkkeysyms.h> #include <gio/gio.h> @@ -856,8 +857,8 @@ static void display_fortune_dialog(FishApplet* fish) screen = gtk_widget_get_screen (GTK_WIDGET (fish)); - gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, - &screen_width, &screen_height); + screen_width = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)); + screen_height = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)); 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 eca42a3f..d233424e 100644 --- a/applets/notification_area/system-tray/fixedtip.c +++ b/applets/notification_area/system-tray/fixedtip.c @@ -20,6 +20,7 @@ * 02110-1301, USA. */ +#include <gdk/gdkx.h> #include "fixedtip.h" /* Signals */ @@ -158,8 +159,8 @@ na_fixed_tip_position (NaFixedTip *fixedtip) parent_width = gdk_window_get_width(parent_window); parent_height = gdk_window_get_height(parent_window); - gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, - &screen_width, &screen_height); + screen_width = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)); + screen_height = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)); /* pad between panel and message window */ #define PAD 5 |