This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit af2e6c99bc110939c6545f3bf4c228dd3cec0a35
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Tue May 6 19:41:33 2025 +0200

    imlib2_view: A couple of fixes to previous commit
    
    - Fix keyboard state handling
    - Discard obsolete ConfigureNotify events
---
 src/bin/imlib2_view.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c
index 5bdc07e..fed3d6e 100644
--- a/src/bin/imlib2_view.c
+++ b/src/bin/imlib2_view.c
@@ -806,7 +806,7 @@ main(int argc, char **argv)
             case KeyPress:
                 while (XCheckTypedWindowEvent(disp, win, KeyPress, &ev))
                     ;
-                key = XLookupKeysym(&ev.xkey, ev.xkey.state);
+                key = XLookupKeysym(&ev.xkey, ev.xkey.state & ShiftMask);
                 switch (key)
                 {
                 default:
@@ -928,6 +928,8 @@ main(int argc, char **argv)
                 load_image_frame(argv[no], finfo.frame_num, inc);
                 break;
             case ConfigureNotify:
+                while (XCheckTypedWindowEvent(disp, win, ConfigureNotify, &ev))
+                    ;
                 if (ev.xconfigure.width == window_width &&
                     ev.xconfigure.height == window_height)
                     break;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to