summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorMathieu OTHACEHE <m.othacehe@gmail.com>2016-12-07 10:03:55 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-12-08 19:27:18 +0100
commit18ec858a4935a217bb41f01a546b2c7a8c25a72b (patch)
tree21cf7216200d2ebddf6010012226abe63605f8f9 /src/screen.c
parent25ec4e4ad39fc1074d1ac7949103b70ea4790cb9 (diff)
downloadratpoison-18ec858a4935a217bb41f01a546b2c7a8c25a72b.zip
Store RootWindow in global_screen structure
Every screen stores a copy of xrandr RootWindow even if they all share the same RootWindow. This patch stores the RootWindow in a global location for all screens. Further work is required to remove RootWindow from per screen structure.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 1f720de..095040c 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -280,6 +280,7 @@ init_global_screen (rp_global_screen *s)
int screen_num;
screen_num = DefaultScreen (dpy);
+ s->root = RootWindow (dpy, screen_num);
s->numset = numset_new ();
s->fg_color = BlackPixel (dpy, screen_num);