From 8e02306b7d01a1b7caa95ee031ed4bbea0bc0606 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 21 Oct 2009 11:41:20 +0200 Subject: [PATCH] ewmh: fix toggle on maximized_horizontal Signed-off-by: Julien Danjou --- ewmh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ewmh.c b/ewmh.c index 7192e2a74..ae29ced77 100644 --- a/ewmh.c +++ b/ewmh.c @@ -301,7 +301,7 @@ ewmh_process_state_atom(client_t *c, xcb_atom_t state, int set) else if(set == _NET_WM_STATE_ADD) client_set_maximized_horizontal(globalconf.L, -1, true); 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) {