Client: Fix raise of client when maximize

This commit is contained in:
Martin Duquesnoy 2011-02-21 12:54:42 +01:00
parent bf26e8c22e
commit e2942ec597
3 changed files with 5 additions and 3 deletions

View File

@ -919,6 +919,9 @@ client_maximize(Client *c)
client_moveresize(c, c->geo, False); client_moveresize(c, c->geo, False);
/* Raise for maximized clients, client_raise has too much condition */
XRaiseWindow(dpy, c->frame);
return; return;
} }
@ -1210,7 +1213,7 @@ void
client_raise(Client *c) client_raise(Client *c)
{ {
if(!c || !(c->flags & AboveFlag) if(!c || !(c->flags & AboveFlag)
|| ((c->flags & TileFlag) && !conf.client_tile_raise)) || ((c->flags & TileFlag) && (!conf.client_tile_raise)))
return; return;
XRaiseWindow(dpy, c->frame); XRaiseWindow(dpy, c->frame);

View File

@ -748,7 +748,6 @@ uicb_togglemax(uicb_t cmd)
sel->free_geo = sel->geo; sel->free_geo = sel->geo;
sel->flags &= ~(TileFlag | FreeFlag); sel->flags &= ~(TileFlag | FreeFlag);
client_maximize(sel); client_maximize(sel);
client_raise(sel);
sel->flags |= MaxFlag; sel->flags |= MaxFlag;
} }
else else

2
wmfsrc
View File

@ -8,7 +8,7 @@
[misc] [misc]
font = "dejavu-10" font = "dejavu-10"
raisefocus = false raisefocus = true
raiseswitch = false raiseswitch = false
focus_follow_mouse = true focus_follow_mouse = true
opacity = 255 opacity = 255