ewmh: fix toggle on maximized_horizontal

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-10-21 11:41:20 +02:00
parent 48565f10bb
commit 8e02306b7d
1 changed files with 1 additions and 1 deletions

2
ewmh.c
View File

@ -301,7 +301,7 @@ ewmh_process_state_atom(client_t *c, xcb_atom_t state, int set)
else if(set == _NET_WM_STATE_ADD) else if(set == _NET_WM_STATE_ADD)
client_set_maximized_horizontal(globalconf.L, -1, true); client_set_maximized_horizontal(globalconf.L, -1, true);
else if(set == _NET_WM_STATE_TOGGLE) else if(set == _NET_WM_STATE_TOGGLE)
client_set_maximized_horizontal(globalconf.L, -1, c->maximized_horizontal); client_set_maximized_horizontal(globalconf.L, -1, !c->maximized_horizontal);
} }
else if(state == _NET_WM_STATE_MAXIMIZED_VERT) else if(state == _NET_WM_STATE_MAXIMIZED_VERT)
{ {