kwin/plugins/platforms/x11/standalone
Martin Flöser 4e9456a857 [platforms/x11] Fix incorrect screen edge approaching with switch desktop on window move
Summary:
There is a regression in WindowBasedEdge::soStopApproaching. Due to
only operate when the edge activates for pointer it is possible that
the cursor polling stays active. Explaining the situation:

1. Activate switch desktop when moving window
2. Start moving a window
3. Move mouse into the approach geometry
-> doStartApproaching activates as we are moving a window
4. stop moving window
-> doStopApproaching early exits as the position does not activate for
   pointer any more - we are not moving a window
-> cursor polling is still connected and whenever mouse enters edge
   approaching is started

The analysis shows that the check whether activates for pointer is wrong
in the case of stop approaching. If the edge started to approach, we also
need to stop approaching.

This change addresses the problem by turning the check into whether the
connection for cursor position update is set.

This is the third bug fix to the X11 screen edge handling after
introducing touch screen edges. This needs more manual testing by
everybody in the Plasma team who is still using X11.

BUG: 381849
FIXED-IN: 5.10.4

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D6467
2017-07-06 19:12:28 +02:00
..
CMakeLists.txt Move linking to DL_LIBRARY to x11standalone platform 2016-11-22 14:22:06 +01:00
edge.cpp [platforms/x11] Fix incorrect screen edge approaching with switch desktop on window move 2017-07-06 19:12:28 +02:00
edge.h [platforms/x11] Fix incorrect screen edge approaching with switch desktop on window move 2017-07-06 19:12:28 +02:00
glxbackend.cpp [platforms/x11] Add support for GLX_NV_robustness_video_memory_purge 2017-06-26 22:05:28 +02:00
glxbackend.h Remove KWin::display from kwinglobals 2016-11-16 18:00:00 +01:00
logging.cpp [plugins/platforms] Dedicated logging category for X11 standalone platform 2016-04-12 14:48:54 +02:00
logging.h [plugins/platforms] Dedicated logging category for X11 standalone platform 2016-04-12 14:48:54 +02:00
screens_xrandr.cpp
screens_xrandr.h
windowselector.cpp Support interactive window selection through the Platform 2016-11-17 08:08:56 +01:00
windowselector.h Support interactive window selection through the Platform 2016-11-17 08:08:56 +01:00
x11.json SVN_SILENT made messages (.desktop file) - always resolve ours 2017-04-25 10:05:35 +02:00
x11_platform.cpp Split modifier only handling into a dedicated InputEventSpy 2017-02-14 17:02:18 +01:00
x11_platform.h Move X11 specific KGlobalAccel handling into the x11-standalone platform 2017-01-17 17:01:32 +01:00
x11cursor.cpp Move X11Cursor into the x11standalone platform plugin 2016-08-19 10:57:09 +02:00
x11cursor.h Move X11Cursor into the x11standalone platform plugin 2016-08-19 10:57:09 +02:00
xinputintegration.cpp [platformx/x11] Fix touch events for internal Qt windows 2017-05-02 20:32:58 +02:00
xinputintegration.h Split modifier only handling into a dedicated InputEventSpy 2017-02-14 17:02:18 +01:00