aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorokan2018-11-14 19:22:51 +0000
committerokan2018-11-14 19:22:51 +0000
commit025c9d4b120958c111c5d0d56b173ab1499b77da (patch)
treed59c2555081761f86bb822c950334d146f8efdaa /menu.c
parentca79a22e6fffc9639d184a137de8b417c39e8024 (diff)
downloadcwm-025c9d4b120958c111c5d0d56b173ab1499b77da.tar.gz
Stop asking for events (NoEventMask) from menu window once done with
the menu (we don't destroy it, only unmap).
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 31614aa..d857e0a 100644
--- a/menu.c
+++ b/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);