aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2013-12-11 14:16:09 +0000
committerokan2013-12-11 14:16:09 +0000
commitae879f5d1b4867c9ce186f50cbb3cacca3daa284 (patch)
tree47ab45ede914d9d41b59d597c2891bf38066ecc5 /xevents.c
parentbca0ab294bb5e82fd02249f93c1f43ee6fd56934 (diff)
downloadcwm-ae879f5d1b4867c9ce186f50cbb3cacca3daa284.tar.gz
Remove extra work and simplify client state handling.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xevents.c b/xevents.c
index 98de3f6..3fcde36 100644
--- a/xevents.c
+++ b/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);