From d681933d73cc26a5ef1556878c41900f26554942 Mon Sep 17 00:00:00 2001 From: phillbush Date: Fri, 1 Oct 2021 20:34:29 -0300 Subject: [PATCH] honor -p option After refactoring the code, the -p option was ignored. This commit honor it again. --- CHANGELOG | 6 ++++++ pmenu.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index f9fa226..d21eaab 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,11 @@ CHANGELOG +2.4.2 (2021-10-01). +• Fixed -p option. + +2.4.1 (2021-09-25). +• Fixed CHANGELOG. + 2.4.0 (2021-09-25). • Added submenu generation at runtime (when output spec begins with $). • Added -P option to prepend relative image paths with a prefix (#9). diff --git a/pmenu.c b/pmenu.c index d8f058c..dd0cfdf 100644 --- a/pmenu.c +++ b/pmenu.c @@ -1767,6 +1767,9 @@ main(int argc, char *argv[]) (ev.type == ButtonPress && ((modifier && ev.xbutton.state == modifier) || (ev.xbutton.subwindow == None)))) { + if (rflag && pflag) { + XAllowEvents(dpy, ReplayPointer, CurrentTime); + } getmonitor(&mon); grabpointer(); grabkeyboard();