From 2ac6adfc517aafee63f26fd109cac34e00d092a8 Mon Sep 17 00:00:00 2001 From: Okan Demirmen Date: Fri, 29 Dec 2017 16:55:51 +0000 Subject: Merge group_toggle_membership_leave into the buttonrelease event and only do border work for a group/ungroup action. --- app/cwm/xevents.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'app/cwm/xevents.c') diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c index cc5aaf8cd..aa9856b56 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.130 2017/12/29 12:54:54 okan Exp $ + * $OpenBSD: xevents.c,v 1.131 2017/12/29 16:55:50 okan Exp $ */ /* @@ -260,8 +260,10 @@ xev_handle_buttonrelease(XEvent *ee) struct client_ctx *cc; if ((cc = client_find(e->window)) != NULL) { - if (cc->flags & CLIENT_ACTIVE) - group_toggle_membership_leave(cc); + if (cc->flags & (CLIENT_ACTIVE | CLIENT_HIGHLIGHT)) { + cc->flags &= ~CLIENT_HIGHLIGHT; + client_draw_border(cc); + } } } -- cgit v1.2.3