Disable window move on Wayland due to lack of Qt features and some cleanup

Review Request #127301 - Created March 7, 2016 and submitted

Information
Martin Flöser
breeze
Plasma/5.6
Reviewers
plasma
hpereiradacosta
A call to QX11Info::isPlatformX11() is a string comparison each time.
So let's better have the value cached, it won't change at runtime.

[kstyle] Add static bool Helper::isWayland()

Just like isX11.

[kstyle] Disable window move on Wayland

Unfortunately we cannot support moving windows from the style on Wayland
(yet). To move a window we need the (Xdg)ShellSurface and the wl_seat.
Through the integration plugin we can get the ShellSurface, but not the
seat. Thus we cannot invoke the feature through KWayland.

We either need to extend the native interface and/or extend QWindow to
expose a startSystemMove (QPlatformWindow already supports a
startSystemResize).

  

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Hugo Pereira Da Costa
Martin Flöser
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit f052173ddbd35e3b34c6714736f31751fd230fa1 by Martin Gräßlin to branch Plasma/5.6.
Loading...