diff options
Diffstat (limited to 'libmate-desktop/mate-rr-labeler.c')
-rw-r--r-- | libmate-desktop/mate-rr-labeler.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmate-desktop/mate-rr-labeler.c b/libmate-desktop/mate-rr-labeler.c index de65423..72b9585 100644 --- a/libmate-desktop/mate-rr-labeler.c +++ b/libmate-desktop/mate-rr-labeler.c @@ -121,8 +121,9 @@ get_work_area (MateRRLabeler *labeler, /* Defaults in case of error */ rect->x = 0; rect->y = 0; - rect->width = gdk_screen_get_width (labeler->priv->screen); - rect->height = gdk_screen_get_height (labeler->priv->screen); + + gdk_window_get_geometry (gdk_screen_get_root_window (labeler->priv->screen), NULL, NULL, + &rect->width, &rect->height); if (workarea == None) return FALSE; |