aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2017-12-29 16:55:50 +0000
committerokan2017-12-29 16:55:50 +0000
commit2752425282f3222e609d25dee2df4f4d666274d5 (patch)
tree9994848f2ce904e91d0879b82db4f5fa4400a186 /xevents.c
parent0aa3e7d08d83b487beb552501005df507b1ac0f8 (diff)
downloadcwm-2752425282f3222e609d25dee2df4f4d666274d5.tar.gz
Merge group_toggle_membership_leave into the buttonrelease event and only do
border work for a group/ungroup action.
Diffstat (limited to '')
-rw-r--r--xevents.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/xevents.c b/xevents.c
index cc5aaf8..aa9856b 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.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);
+ }
}
}