From 84119dd331c6c508f6e3fb60137247be9f6fe22f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 19 Oct 2019 08:17:17 +0300 Subject: [PATCH] sowm: simpler button release --- sowm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sowm.c b/sowm.c index a536919..084067f 100644 --- a/sowm.c +++ b/sowm.c @@ -122,9 +122,7 @@ void button_press(XEvent *e) { } void button_release() { - for win if (c->w == mouse.subwindow) c->f = 0; - - mouse.subwindow = 0; + cur->f = mouse.subwindow = 0; } void win_add(Window w) {