kwin/plugins/platforms/x11/standalone
David Edmundson 5b4eb80c8f Set specific edge cursor shape when resizing
Summary:
Instead of seeing the cursor <--> on the left edge you now see an icon
that looks like |<-  .

This brings kwin decorations in line with GTK CSD icons.

In theory this is also useful to tell which window will resize in the
case of side-by-side windows (regardless of whether borders are on or
not). In practice with the adwaita icon theme I tested with it's not
very intuitive to realise which is which till you learn the icon.

Change is more involved than it should be as Qt::CursorShape doesn't
have these entries, and I don't want to shadow that enum internally or
have
to change kwin effect code.

Specifics depend on cursor icon theme if they are not present it will
fallback to the <--> icon. (Breeze does not have them currently)

Test Plan:
Resized some windows (on X and on Wayland)
Correct icon appeared on Adwaita
Existing icon appeared on Breeze

Reviewers: #plasma

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13396
2018-06-11 10:05:07 +01:00
..
CMakeLists.txt Merge branch 'Plasma/5.11' 2017-11-05 10:46:53 +01:00
edge.cpp
edge.h
effects_mouse_interception_x11_filter.cpp
effects_mouse_interception_x11_filter.h
effects_x11.cpp
effects_x11.h
glx_context_attribute_builder.cpp
glx_context_attribute_builder.h
glxbackend.cpp Merge branch 'Plasma/5.11' 2017-11-20 18:13:35 +01:00
glxbackend.h
logging.cpp
logging.h
non_composited_outline.cpp
non_composited_outline.h
overlaywindow_x11.cpp
overlaywindow_x11.h
screenedges_filter.cpp
screenedges_filter.h
screens_xrandr.cpp
screens_xrandr.h
sync_filter.cpp
sync_filter.h
windowselector.cpp [x11] Fix interactive point selection 2018-02-05 21:21:27 +01:00
windowselector.h [x11] Fix interactive point selection 2018-02-05 21:21:27 +01:00
x11.json SVN_SILENT made messages (.desktop file) - always resolve ours 2018-04-22 05:43:11 +02:00
x11_decoration_renderer.cpp
x11_decoration_renderer.h
x11_platform.cpp [x11] Fix interactive point selection 2018-02-05 21:21:27 +01:00
x11_platform.h [x11] Fix interactive point selection 2018-02-05 21:21:27 +01:00
x11cursor.cpp Set specific edge cursor shape when resizing 2018-06-11 10:05:07 +01:00
x11cursor.h Set specific edge cursor shape when resizing 2018-06-11 10:05:07 +01:00
xfixes_cursor_event_filter.cpp
xfixes_cursor_event_filter.h
xinputintegration.cpp
xinputintegration.h