Bug 489713 - [Wayland] Gwenview will not respond to keyboard shortcut after refocussing on window
Summary: [Wayland] Gwenview will not respond to keyboard shortcut after refocussing on...
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 24.05.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-04 06:39 UTC by madness742
Modified: 2024-12-18 10:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description madness742 2024-07-04 06:39:08 UTC
SUMMARY
Gwenview will not respond to Next and Previous keyboard shortcuts after refocussing on the window.

STEPS TO REPRODUCE
1. Place a minimum of two images in the same folder.
2. Open one of the pictures in Gwenview.
3. Click on a different window so that Gwenview loses focus.
4. Click back on the image in Gwenview by either clicking in the middle, or at the title bar.
5. Press the Next or Previous keyboard shortcut (assigned to the left and right arrow by default). 

OBSERVED RESULT
The image does not change to the next/previous image.

EXPECTED RESULT
The image should change to the next/previous image.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed (20240701)
(available in About System)
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
This bug has a workaround by starting Gwenview with `QT_QPA_PLATFORM=xcb`.
Comment 1 Duncan 2024-10-06 14:09:21 UTC
This seems to be fixed now.  I can't reproduce (tho I  have focus-under-mouse set so don't need to click, just move the mouse out of the window and back to switch focus away and back to).

Note that I'm just a user (not a dev) who found this while looking for another bug, but believe this to be resolved/fixed based on the several months ago age of the bug and that I don't see it on the newer versions detailed below.  If you still see it on the below or newer versions feel free to reopen as perhaps my config simply isn't triggering the bug for some reason.

Native kwin_wayland compositor session, live-git gwenview on live-git frameworks and plasma, all last updated on Oct 3 using the gentoo/kde overlay live-git ebuilds, on qt 6.7.3, reporting:

gwenview 24.11.70
frameworks 6.7.0
plasma (kwin_wayland) 6.1.90

With these possibly relevant system package versions:
qt 6.7.3
wayland 1.23.1
wayland-protocols 1.37
libinput 1.26.2
linux 6.11
Comment 2 madness742 2024-12-18 10:47:22 UTC
I can still reproduce this, even on different distribution such as Fedora or Arch Linux, when the windows activation policy is set to 'Click to focus' [default setting]. When changing it to 'Focus under mouse' the bug does not appear.

Gwenview Version: 24.12.0
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.4-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland