kwin/tabbox
Martin Gräßlin 24bdfc6317 Make Toplevel::window() no longer virtual and introduce ::windowId()
Summary:
Toplevel::window() is the actual X11 window. This makes it difficult
to use as the generic identifier for both X11 and Wayland. The Wayland
ShellClient already had a windowId() which is now added to Toplevel as
a virtual method. On X11 (Toplevel default) it returns the window().

The method window() now returns XCB_WINDOW_NONE for classes without
the Toplevel::m_client, such as ShellClient. Thus it allows to properly
check whether we are on Wayland or X11.

The code is adjusted to use windowId where a generic id is needed and
to properly check whether the window is valid before using it where
a window() is used.

This also fixes at least one additional unknown issue in
Workspace::setActiveClient

where the windowId of a Wayland client was passed to X11.

Reviewers: #plasma

Subscribers: plasma-devel

Projects: #plasma

Differential Revision: https://phabricator.kde.org/D1527
2016-05-17 14:13:24 +02:00
..
autotests [tabbox] Pass the tabbox window to elevate as a QWindow instead of winId 2016-03-04 09:44:24 +01:00
clientmodel.cpp
clientmodel.h
CMakeLists.txt
desktopchain.cpp
desktopchain.h
desktopmodel.cpp
desktopmodel.h
kwindesktopswitcher.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2016-01-10 11:46:53 +00:00
kwinwindowswitcher.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2015-11-07 21:21:42 +00:00
switcheritem.cpp
switcheritem.h
tabbox.cpp Make Toplevel::window() no longer virtual and introduce ::windowId() 2016-05-17 14:13:24 +02:00
tabbox.h Pass pointer and wheel events to TabBox from special event filter 2016-03-04 14:18:32 +01:00
tabbox_logging.cpp
tabbox_logging.h
tabboxconfig.cpp
tabboxconfig.h
tabboxhandler.cpp [tabbox] Pass the tabbox window to elevate as a QWindow instead of winId 2016-03-04 09:44:24 +01:00
tabboxhandler.h [tabbox] Pass the tabbox window to elevate as a QWindow instead of winId 2016-03-04 09:44:24 +01:00