summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 7e12be1..83d1c9f 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -163,7 +163,9 @@ meta_screen_new (MetaDisplay *display,
screen->screen_name = get_screen_name (display, number);
screen->xscreen = ScreenOfDisplay (xdisplay, number);
screen->xroot = xroot;
-
+ screen->width = WidthOfScreen (screen->xscreen);
+ screen->height = HeightOfScreen (screen->xscreen);
+
if (display->leader_window == None)
display->leader_window = XCreateSimpleWindow (display->xdisplay,
screen->xroot,