summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 09:29:35 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 09:29:35 +0100
commitf6f6cd87e6175b203445e1245fb1fa282416ebca (patch)
tree9818e89ab7b052a6d729f9aa7bb45626bab5de4b /src
parent47c2bee92a15b4eb953e5b2b63f08d38ab245ac4 (diff)
downloadratpoison-f6f6cd87e6175b203445e1245fb1fa282416ebca.zip
Reinstate code that should stay: we may not have xrandr
Diffstat (limited to 'src')
-rw-r--r--src/events.c21
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: