summaryrefslogtreecommitdiff
path: root/app/cwm/xevents.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-12-11 14:16:11 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-12-11 14:16:11 +0000
commitf70fabe83f1450fd09ad8c5dceb5eac0a203b356 (patch)
treecde84db0f5c86e7c882834dfd0cdf0d9ce6e2476 /app/cwm/xevents.c
parent4007bef1ba4723115ba2377a5018ad1113d137c3 (diff)
Remove extra work and simplify client state handling.
Diffstat (limited to 'app/cwm/xevents.c')
-rw-r--r--app/cwm/xevents.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c
index 98de3f66b..3fcde3671 100644
--- a/app/cwm/xevents.c
+++ b/app/cwm/xevents.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: xevents.c,v 1.95 2013/12/02 14:30:12 okan Exp $
+ * $OpenBSD: xevents.c,v 1.96 2013/12/11 14:16:09 okan Exp $
*/
/*
@@ -99,8 +99,7 @@ xev_handle_unmapnotify(XEvent *ee)
if ((cc = client_find(e->window)) != NULL) {
if (e->send_event) {
- cc->state = WithdrawnState;
- xu_set_wm_state(cc->win, cc->state);
+ client_set_wm_state(cc, WithdrawnState);
} else {
if (!(cc->flags & CLIENT_HIDDEN))
client_delete(cc);