summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMC <mc@hack.org>2010-06-21 21:58:20 +0200
committerMC <mc@hack.org>2010-06-21 21:58:20 +0200
commit5e6a30df976d028a8bbd313c457bc98d937ce499 (patch)
treef8225add32125f0f34963b5fe939ede106848ff5 /mcwm.c
parent8568c8791fd34b618ee9b3f68d580af560e357cb (diff)
downloadmcwm-5e6a30df976d028a8bbd313c457bc98d937ce499.zip
Add handling of Circulate Request of subwindows. Now xpdf search
works! \o/
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/mcwm.c b/mcwm.c
index e290b1c..e2e94a7 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -1345,7 +1345,25 @@ void events(void)
}
}
break;
+
+ case XCB_CIRCULATE_REQUEST:
+ {
+ xcb_circulate_request_event_t *e
+ = (xcb_circulate_request_event_t *)ev;
+
+ /*
+ * Subwindow e->window to parent e->event is about to be
+ * restacked.
+ *
+ * Just do what was requested, e->place is either
+ * XCB_PLACE_ON_TOP or _ON_BOTTOM. We don't care.
+ */
+
+ xcb_circulate_window(conn, e->window, e->place);
+ }
+ break;
+
} /* switch */
free(ev);