summaryrefslogtreecommitdiff
path: root/mate-panel/panel-struts.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-struts.c')
-rw-r--r--mate-panel/panel-struts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mate-panel/panel-struts.c b/mate-panel/panel-struts.c
index 76e5c655..644dafb0 100644
--- a/mate-panel/panel-struts.c
+++ b/mate-panel/panel-struts.c
@@ -22,6 +22,7 @@
*/
#include <config.h>
+#include <gdk/gdkx.h>
#include "panel-struts.h"
@@ -268,8 +269,8 @@ panel_struts_set_window_hint (PanelToplevel *toplevel)
strut_size = strut->allocated_strut_size;
- gdk_window_get_geometry (gdk_screen_get_root_window (strut->screen), NULL, NULL,
- &screen_width, &screen_height);
+ screen_width = WidthOfScreen (gdk_x11_screen_get_xscreen (strut->screen));
+ screen_height = HeightOfScreen (gdk_x11_screen_get_xscreen (strut->screen));
panel_struts_get_monitor_geometry (strut->screen,
strut->monitor,