diff options
author | Mathieu OTHACEHE <m.othacehe@gmail.com> | 2016-12-07 10:03:55 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-12-08 19:27:18 +0100 |
commit | 18ec858a4935a217bb41f01a546b2c7a8c25a72b (patch) | |
tree | 21cf7216200d2ebddf6010012226abe63605f8f9 | |
parent | 25ec4e4ad39fc1074d1ac7949103b70ea4790cb9 (diff) | |
download | ratpoison-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.
-rw-r--r-- | src/data.h | 1 | ||||
-rw-r--r-- | src/screen.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -152,6 +152,7 @@ struct rp_group struct rp_global_screen { + Window root; unsigned long fg_color, bg_color, fw_color, bw_color; /* The pixel color. */ /* This numset is responsible for giving out numbers for each screen */ 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); |