diff options
-rw-r--r-- | src/daemon/stack.c | 5 | ||||
-rw-r--r-- | src/themes/nodoka/nodoka-theme.c | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/daemon/stack.c b/src/daemon/stack.c index 38f9ed5..a173b5e 100644 --- a/src/daemon/stack.c +++ b/src/daemon/stack.c @@ -71,8 +71,9 @@ get_work_area (NotifyStack *stack, /* Defaults in case of error */ rect->x = 0; rect->y = 0; - rect->width = gdk_screen_get_width (stack->screen); - rect->height = gdk_screen_get_height (stack->screen); + + gdk_window_get_geometry (gdk_screen_get_root_window (stack->screen), NULL, NULL, + &rect->width, &rect->height); if (workarea == None) return FALSE; diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index d3329b2..ac99033 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -137,8 +137,8 @@ get_notification_arrow_type(GtkWidget *nw) WindowData *windata = g_object_get_data(G_OBJECT(nw), "windata"); int screen_height; - screen_height = gdk_screen_get_height( - gdk_window_get_screen(gtk_widget_get_window(nw))); + gdk_window_get_geometry (gdk_screen_get_root_window (gdk_window_get_screen (gtk_widget_get_window (nw))), + NULL, NULL, NULL, &screen_height); if (windata->arrow.position.y + windata->height + DEFAULT_ARROW_HEIGHT > screen_height) @@ -159,8 +159,8 @@ set_arrow_parameters (WindowData *windata) int x,y; GtkArrowType arrow_type; - screen_width = gdk_screen_get_width( - gdk_window_get_screen(gtk_widget_get_window(windata->win))); + gdk_window_get_geometry (gdk_screen_get_root_window (gdk_window_get_screen (gtk_widget_get_window (windata->win))), + NULL, NULL, &screen_width, NULL); /* Set arrow offset */ GtkAllocation alloc; |