Bug 465563 - [Wayland] [Drawing Tablet]: Opening certain menus while using a drawing tablet makes them appear in separate windows
Summary: [Wayland] [Drawing Tablet]: Opening certain menus while using a drawing table...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://bugreports.qt.io/browse/QTBUG...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-10 22:41 UTC by guimarcalsilva
Modified: 2023-02-13 18:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description guimarcalsilva 2023-02-10 22:41:51 UTC
SUMMARY
If you use a drawing tablet (eg. Wacom) and open certain menus/context menus in some KDE applications (eg. Dolphin, System Settings, or an "Open file..." dialog), they will appear in the center of the screen on their own window.

STEPS TO REPRODUCE
1. Open Dolphin (or System Settings)
2. With a drawing tablet, open a context menu (you might need a stylus with buttons) or a hamburger menu by tapping with your stylus

ALTERNATIVE STEPS TO REPRODUCE:
1. Open a brand new Kate or Kolour Paint window (Important: needs to be a new window where you didn't interact with the "Open with..." dialog with your regular mouse, otherwise it won't work. Only use your stylus)
2. Select "Open with", "Open...", etc with your stylus
3. Again, with your stylus, click on the arrow on the Filter field at the bottom to list all formats

OBSERVED RESULT
The hamburger menu/context menu/list will appear in its own separate window at the center of the screen. The terminal doesn't show anything out of the ordinary when that happens.

EXPECTED RESULT
Menus should open normally

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.15.0-58-generic (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-9400F CPU @ 2.90GHz
Memory: 15,6 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Comment 1 guimarcalsilva 2023-02-10 22:57:39 UTC
Clarifying what I mean by "needs to be a new window where you didn't interact with the "Open with..." dialog with your regular mouse":

The bug only happens if you open a window and only use a stylus to open the menus. No matter how many times you open a menu with a stylus in this fresh state, the menus always open as separate windows. If you open those submenus with your regular mouse first and only then open them with a stylus they appear where they should.
Comment 2 Nate Graham 2023-02-12 17:52:05 UTC
IIRC this is a Qt issue but I can't find its URL right now. Maybe Vlad can?
Comment 3 Vlad Zahorodnii 2023-02-13 09:48:31 UTC
This is a qtwayland issue. I can't find a relevant bug report though. Perhaps somebody needs to report it.
Comment 4 Nate Graham 2023-02-13 18:29:14 UTC
Opened https://bugreports.qt.io/browse/QTBUG-111130 to track it in Qt.