From e11bc9e553838added8505246082fb8162635b0d Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Sat, 14 Feb 2009 20:41:55 +0100 Subject: [PATCH] event: block stacking related changes in configurerequest. Signed-off-by: Julien Danjou --- event.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/event.c b/event.c index cd268211..2def5560 100644 --- a/event.c +++ b/event.c @@ -294,6 +294,10 @@ event_handle_configurerequest(void *data __attribute__ ((unused)), if (ev->value_mask & XCB_CONFIG_WINDOW_BORDER_WIDTH) client_setborder(c, ev->border_width); + /* Clients are not allowed to directly mess with stacking parameters. */ + ev->value_mask &= ~(XCB_CONFIG_WINDOW_SIBLING | + XCB_CONFIG_WINDOW_STACK_MODE); + if(c->isbanned) { /* We'll be sending protocol geometry, so don't readd borders and titlebar. */