try to fix SDL/OpenGL apps

This commit is contained in:
Julien Danjou 2008-01-07 00:17:07 +01:00
parent 1381989651
commit 7dd8e9dd5f
1 changed files with 8 additions and 1 deletions

View File

@ -162,7 +162,14 @@ handle_event_configurerequest(XEvent * e)
if(get_current_layout(c->screen)->arrange != layout_floating) if(get_current_layout(c->screen)->arrange != layout_floating)
c->isfloating = True; c->isfloating = True;
client_resize(c, geometry, False);
/* if not resized, send event anyway */
if(!client_resize(c, geometry, False))
{
window_configure(c->win, geometry, c->border);
XMoveResizeWindow(e->xany.display, c->win,
geometry.x, geometry.y, geometry.width, geometry.height);
}
tag_client_with_rules(c); tag_client_with_rules(c);