From d86ea2de25d7ba54b57f208feb6f05071077820b Mon Sep 17 00:00:00 2001 From: Songli Yu Date: Thu, 9 Nov 2023 04:34:43 +0800 Subject: [PATCH] Fix patch compatibility issue in the resizemousescroll function of TAPRESIZE_PATCH. (#393) --- patch/tapresize.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patch/tapresize.c b/patch/tapresize.c index c236b5d..7b918cb 100644 --- a/patch/tapresize.c +++ b/patch/tapresize.c @@ -10,8 +10,15 @@ resizemousescroll(const Arg *arg) if (!(c = selmon->sel)) return; + #if !FAKEFULLSCREEN_PATCH + #if FAKEFULLSCREEN_CLIENT_PATCH + if (c->isfullscreen && c->fakefullscreen != 1) /* no support resizing fullscreen windows by mouse */ + return; + #else if (c->isfullscreen) /* no support resizing fullscreen windows by mouse */ return; + #endif // FAKEFULLSCREEN_CLIENT_PATCH + #endif // !FAKEFULLSCREEN_PATCH restack(selmon); if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, None, cursor[CurResize]->cursor, CurrentTime) != GrabSuccess)