https://bugs.kde.org/show_bug.cgi?id=389164

--- Comment #7 from Martin Flöser <mgraess...@kde.org> ---
(In reply to Nate Graham from comment #6)
> (In reply to Martin Flöser from comment #5)
> > > @Martin: Is this a conceptual problem, or simply a bug in KWin: Why are
> > > popups closing when KWin asks "Create screen shot with left click or 
> > > enter"?
> > 
> > When creating a screenshot KWin takes over the mouse cursor which results in
> > a pointer leave event being sent to the window. This results (at least in
> > Qt) in closing the popup.
> 
> Maybe we could omit the pointer leave event? If you're taking a screenshot,
> it's a good bet you want the screen to remain exactly as it is so nothing
> disappears or changes before the screenshot can be captured.

Not without breaking our Wayland protocol support. There is a guarantee that
all pointer events are delivered while an application has the focus. Imagine
you click a second button while taking the screenshot and release it
afterwards. Then the application gets a button release event for a button it
never got the press event. That is a clear violation of Wayland protocol and I
would understand any program which asserts under this condition.

We must send a leave event when we take over the mouse pointer.

> 
> 
> > This is also not really a difference to X11. There it is also not possible
> > to screenshot context menus.
> 
> Not by clicking, but you currently can do this in X11: Open Spectacle > Set
> 2 second timer > switch to "Window under cursor" mode > Click "take new
> screenshot" > Open context menu > position mouse cursor over menu. It would
> be a shame to lose this feature in Wayland.

Yes, this is currently not possible. It could be achieved by moving the time
delay to KWin. So that KWin does not have to take the pointer focus, but just
screenshots after the 2 second timer. This would require changes in spectacle
and the dbus protocol.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to