diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-11-23 09:29:35 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-11-23 09:29:35 +0100 |
commit | f6f6cd87e6175b203445e1245fb1fa282416ebca (patch) | |
tree | 9818e89ab7b052a6d729f9aa7bb45626bab5de4b | |
parent | 47c2bee92a15b4eb953e5b2b63f08d38ab245ac4 (diff) | |
download | ratpoison-f6f6cd87e6175b203445e1245fb1fa282416ebca.zip |
Reinstate code that should stay: we may not have xrandr
-rw-r--r-- | src/events.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/events.c b/src/events.c index 496752e..d881049 100644 --- a/src/events.c +++ b/src/events.c @@ -702,7 +702,19 @@ mapping_notify (XMappingEvent *ev) grab_keys_all_wins(); } -/* This is called whan an application has requested the +static void +configure_notify (XConfigureEvent *ev) +{ + rp_screen *s; + + s = find_screen(ev->window); + if (s != NULL) + /* This is a root window of a screen, + * look if its width or height changed: */ + screen_update (s, ev->x, ev->y, ev->width, ev->height); +} + +/* This is called when an application has requested the selection. Copied from rxvt. */ static void selection_request (XSelectionRequestEvent *rq) @@ -847,6 +859,13 @@ delegate_event (XEvent *ev) selection_clear(); break; + case ConfigureNotify: + PRINT_DEBUG (("--- Handling ConfigureNotify ---\n")); +#ifdef notdef + configure_notify (&ev->xconfigure); +#endif + break; + case MapNotify: case Expose: case MotionNotify: |