summaryrefslogtreecommitdiff
path: root/app/cwm/xevents.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2017-12-29 12:54:55 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2017-12-29 12:54:55 +0000
commit66cbb9f6e913b1652216045da296e11ed23cab87 (patch)
tree931519afc711cf50a60e626e136a3372e910b50a /app/cwm/xevents.c
parent840940052b69ff4b86b3a3043a4a15bb15ef79e1 (diff)
add helper function client_show to bring together like actions for unhide/raise
Diffstat (limited to 'app/cwm/xevents.c')
-rw-r--r--app/cwm/xevents.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c
index 71411f883..cc5aaf8cd 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.129 2017/12/27 17:04:35 okan Exp $
+ * $OpenBSD: xevents.c,v 1.130 2017/12/29 12:54:54 okan Exp $
*/
/*
@@ -357,10 +357,7 @@ xev_handle_clientmessage(XEvent *ee)
if ((cc = client_find(e->window)) != NULL) {
if ((old_cc = client_current()) != NULL)
client_ptrsave(old_cc);
- if (cc->flags & CLIENT_HIDDEN)
- client_unhide(cc);
- else
- client_raise(cc);
+ client_show(cc);
client_ptrwarp(cc);
}
} else if (e->message_type == ewmh[_NET_WM_DESKTOP]) {