summaryrefslogtreecommitdiff
path: root/app/cwm/menu.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2018-11-14 19:22:52 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2018-11-14 19:22:52 +0000
commitb01ee8d0d799583f3524ab5a938c2510a1525fcf (patch)
tree0186da54c8ab36dc5873eca554da53af25bc1611 /app/cwm/menu.c
parent723e7030b0068873119dd513e1ee5c129f235c44 (diff)
Stop asking for events (NoEventMask) from menu window once done with
the menu (we don't destroy it, only unmap).
Diffstat (limited to 'app/cwm/menu.c')
-rw-r--r--app/cwm/menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/cwm/menu.c b/app/cwm/menu.c
index 31614aaa5..d857e0a7c 100644
--- a/app/cwm/menu.c
+++ b/app/cwm/menu.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: menu.c,v 1.105 2017/12/19 19:38:43 okan Exp $
+ * $OpenBSD: menu.c,v 1.106 2018/11/14 19:22:51 okan Exp $
*/
#include <sys/types.h>
@@ -159,6 +159,7 @@ out:
mi = NULL;
}
+ XSelectInput(X_Dpy, sc->menu.win, NoEventMask);
XSetInputFocus(X_Dpy, focuswin, focusrevert, CurrentTime);
/* restore if user didn't move */
xu_ptr_getpos(sc->rootwin, &xcur, &ycur);