-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[General Responsiveness]: some clicks are eaten=not executed #29
Comments
I just tried that and can confirm. |
Any mouse event on the panel is lost when switching the menu. In fact any mouse event on the panel is eaten while the switch menu is open. This is different to other similar dialogs: systray and menu do not eat the event. |
5 KMIX is a bad example: it's using a QMenu and a QMenu grabs the mouse. If a widget grabs the mouse it's expected that no other elements can receive mouse events. That's the basic contract of a context menu and absolutely the expected behavior. |
well, in kde4.x you could have kmix open and still grab and move a window...just saying that this should be normal, expected behaviour. |
by that I'm not saying that I think it should work like that from a user perspective. But technically it has to work like that. It's opening a (context) menu and if that doesn't grab the mouse it becomes problematic. The new Plasmoid is not showing that interaction as it's no longer a QMenu. The same is the case for other similar menus. E.g. the old Klipper would have prevented mouse interaction, while the new doesn't. |
Just two notes: a) The KMix popup is a QWidget, not a QMenu, and just from a casual glance I don't see it set a window type |
concerning a) not much difference. It's grabbing the mouse, I just verified by:
|
There's not a single call to grabMouse() in the code tho and xwininfo works fine for me: xwininfo: Please select the window about which you xwininfo: Window id: 0x380000f "kmix" Absolute upper-left X: 1426 --- snip --- What's your kmix version? I have 4.6RC1 using KF5.5. |
Eike, might it be that you are running the Qt with the broken mouse grabbing? |
I'm on the 5.4 branch without the patch (unless it got in by now), sure. |
so you are able to click outside and get xwininfo due to a Qt bug :-P |
can you test some more things: please try clicking on the task manager to close it. For me, the next event is not eaten in that case. If you can confirm that I have a theory to create a bug report against Qt. |
confirmed |
I am quite sure to have understood the root cause of the problem
I'm sure to be able to construct a minimal example to illustrate the problem to Qt devs, but I'm not sure how and where this could be fixed. |
Reported as upstream bug |
I'm not sure is 100% correct (and if will be accepted) but a tentative Qt patch is here: |
The package is libqt5gui5. Please note that the patch has regression potential. |
still fails here even with updated packages from fixes ppa |
The good news is that it does work fine here (Qt 5.4 branch git which should have Marco's patch, Plasma git master which probably doesn't matter), so it has to be possible to get it working in principle ... |
in the case of MENU-SWITCH seems to be reproducible locally too (oddly, some times, doesn't happen 100% of the times). |
doesn't seem directly related to the switching, even just opening the alternatives menu eats a click. |
Here is my steps:
-> Menu opens. |
interesting, wonder if is a different qt revision |
this commit |
maybe it didnt got shipped, but here the annoying "alt-switch" issue can still be seen in action: |
the commit is in master and 5.2, locally i still indeed see the problem happen sometimes |
so the bug is still not fixed, as it happens here all the time, not sometimes... |
lets check again on fridays kci and prepare to fix this once more. |
So, the problem seems is related but not the same fixed by the Qt patch. so it needs either an updated plasma-framework package or the above patch to be included. |
switch to alternative menu (kickoff to kicker or viceversa)
first click on startbutton doesnt do anything (kubuntu-plasma5-201412051356-amd64.iso )
right click on task-manager in panel area to bring up dialog, click on desktop to close it:
next mouse click eaten, like clicking on menu button does nothing.
right click on any icon in panel
left-click somewhere on the desktop to close popup from right-click
click on "Panel Edit" mode icon does nothing, only second click activates "edit mode"
click on top window bar to focus window: you can right-click on desktop
click and hold to drag window to move around: you can not right-click on desktop after that (was possible under kde4.x)
left-click on kmix icon in systray
while kmix dialog is open, try to grab and move a window from window titlebar
The text was updated successfully, but these errors were encountered: