summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2014-09-17 16:30:22 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2014-09-17 16:30:22 +0000
commit57110fe44fbd63aadc454bd305d2229c50bbe34a (patch)
tree81aa20664cb8959a84a55053c9402f9dd4cf6578 /app
parent55d844539431d64770816aa18199f2d1b7d464a0 (diff)
don't toggle _WM_STATE_HIDDEN here yet
Diffstat (limited to 'app')
-rw-r--r--app/cwm/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c
index 4c3a88d4a..f5e6350d7 100644
--- a/app/cwm/client.c
+++ b/app/cwm/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.184 2014/09/17 16:00:44 okan Exp $
+ * $OpenBSD: client.c,v 1.185 2014/09/17 16:30:21 okan Exp $
*/
#include <sys/param.h>
@@ -497,7 +497,7 @@ client_hide(struct client_ctx *cc)
XUnmapWindow(X_Dpy, cc->win);
cc->flags &= ~CLIENT_ACTIVE;
- client_hidden(cc);
+ cc->flags |= CLIENT_HIDDEN;
client_set_wm_state(cc, IconicState);
if (cc == client_current())
@@ -512,7 +512,7 @@ client_unhide(struct client_ctx *cc)
XMapRaised(X_Dpy, cc->win);
- client_hidden(cc);
+ cc->flags &= ~CLIENT_HIDDEN;
client_set_wm_state(cc, NormalState);
client_draw_border(cc);
}