event: block stacking related changes in configurerequest.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maarten Maathuis 2009-02-14 20:41:55 +01:00 committed by Julien Danjou
parent 04df061aa0
commit e11bc9e553
1 changed files with 4 additions and 0 deletions

View File

@ -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. */