try to fix SDL/OpenGL apps
This commit is contained in:
parent
1381989651
commit
7dd8e9dd5f
9
event.c
9
event.c
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue