Supress mouse events in KCMs causing window moves

Authored by davidedmundson on Sep 16 2019, 11:22 PM.

Description

Supress mouse events in KCMs causing window moves

Summary:
If a mouse press is handled by the new input handlers the mouse evnet is
not accepted at a window level.

This causes the breeze style to start a window drag.

Marking all mouse events as accepted after being processed supresses
them reaching the widget.

This is noticable in the rewritten kscreen KCM when running on XCB. (it
would also affect wayland, but the breeze window management is currently
broken there)

Test Plan: Dragged a monitor in kscreen kcm. The monitor representation moved not the whole window

Reviewers: Plasma

Subscribers: kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D24012

Details

Committed
davidedmundsonSep 19 2019, 11:42 PM
Differential Revision
D24012: Supress mouse events in KCMs causing window moves
Parents
R295:47d4e46b5252: fix right border
Branches
Unknown
Tags
Unknown