Summary: | kwin missing setting for wheel event and double click, on the frame | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Allan <kdebugs> |
Component: | decorations | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hugo.pereira.da.costa, kdebugs |
Priority: | NOR | Flags: | mgraesslin:
ReviewRequest+
|
Version First Reported In: | 5.5.5 | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
URL: | https://phabricator.kde.org/D1596 | ||
Latest Commit: | http://commits.kde.org/kwin/14d12c05855adb42fb572ad1c41ba2c2547765f4 | Version Fixed In: | 5.7.0 |
Sentry Crash Report: |
Description
Allan
2016-05-09 17:50:23 UTC
Which decoration in particular (breeze or some aurorae theme)? In doubt attach the output of "qdbus org.kde.KWin /KWin supportInformation". (In reply to Thomas Lübking from comment #1) > Which decoration in particular (breeze or some aurorae theme)? > In doubt attach the output of "qdbus org.kde.KWin /KWin supportInformation". Breeze is used. @Hugo, do you intercept wheel events on the edges? You don't need to align it with the top of the screen - that is just my typical use case because then you can just throw the mouse at that infinitely tall space - makes it easy to hit and use. In KDE5 unlike in KDE4, you can only scroll/doubleclick at the titlebar, but not at the titlebar border regardless if you disabled borders entirely, and regardless where the window is on the screen. (In reply to Thomas Lübking from comment #3) > @Hugo, do you intercept wheel events on the edges? Nope. No event interception whatsoever in breeze decoration. Unit test in KWin confirms the problem. Will investigate. The reason is that we check the titleBar rect: if (orientation == Qt::Vertical && decoration->decoration()->titleBar().contains(localPos.toPoint())) { decoration->client()->performMouseCommand(options->operationTitlebarMouseWheel(delta * -1), event->globalPosF().toPoint()); } The top most pixel is not part of the title bar, so the event doesn't get processed. Changing this in Breeze causes other breakage, so that's something to fix in KWin. Possible patch in https://phabricator.kde.org/D1596 - targeting next feature version as it changes behavior. Git commit 14d12c05855adb42fb572ad1c41ba2c2547765f4 by Martin Gräßlin. Committed on 12/05/2016 at 14:58. Pushed by graesslin into branch 'master'. Do not limit mouse actions to titleBarArea but allow on complete titleBarPosition Summary: Mouse actions like wheel and double click were restricted to the titleBar area. This made the top most pixel non-interactive as it's not part of the titleBarArea. This change makes the complete titlebarPosition interactive. That is it includes for a "normal" (top) setup also the TopLeft/Top/Right section. Thus the top most pixel can be double clicked, mouse wheeled, etc. For the Wayland case the test case is adjusted. FIXED-IN: 5.7.0 Reviewers: #plasma Subscribers: plasma-devel Projects: #plasma Differential Revision: https://phabricator.kde.org/D1596 M +27 -2 abstract_client.cpp M +1 -0 abstract_client.h M +54 -0 autotests/wayland/decoration_input_test.cpp M +2 -2 events.cpp M +1 -1 input.cpp http://commits.kde.org/kwin/14d12c05855adb42fb572ad1c41ba2c2547765f4 |