event: Actually modify ev->x and ev->y for banned clients.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maarten Maathuis 2009-02-14 20:41:53 +01:00 committed by Julien Danjou
parent 401b8ce3e9
commit 71bd32bcb1
1 changed files with 2 additions and 2 deletions

View File

@ -295,8 +295,8 @@ event_handle_configurerequest(void *data __attribute__ ((unused)),
{ {
/* We'll be sending protocol geometry, so don't readd borders and titlebar. */ /* We'll be sending protocol geometry, so don't readd borders and titlebar. */
/* We do have to ensure the windows don't end up in the visible screen. */ /* We do have to ensure the windows don't end up in the visible screen. */
geometry.x = - (geometry.width + 2*c->border); ev->x = geometry.x = - (geometry.width + 2*c->border);
geometry.y = - (geometry.height + 2*c->border); ev->y = geometry.y = - (geometry.height + 2*c->border);
window_configure(c->win, geometry, c->border); window_configure(c->win, geometry, c->border);
event_handle_configurerequest_configure_window(ev); event_handle_configurerequest_configure_window(ev);
} }