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 Replace NULL with nullptr in tabbox folder 2014-02-24 16:42:43 +01:00
clientmodel.h Replace NULL with nullptr in tabbox folder 2014-02-24 16:42:43 +01:00
CMakeLists.txt Desktop switchers moved to kdeplasma-addons 2014-10-31 09:34:48 +01:00
desktopchain.cpp Fix comparison between signed and unsigned integer expressions warning 2014-04-28 17:29:06 +02:00
desktopchain.h Replace NULL with nullptr in tabbox folder 2014-02-24 16:42:43 +01:00
desktopmodel.cpp [kwin] Add a method longestCaption() in TabBox::DesktopModel. 2013-12-22 10:40:28 +01:00
desktopmodel.h Replace NULL with nullptr in tabbox folder 2014-02-24 16:42:43 +01:00
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 update SwitcherItem::screenGeometry when showing 2015-08-19 12:31:31 +02:00
switcheritem.h [kwin/tabbox] Use a QmlComponent instead of a QQuickView for TabBox 2013-12-12 09:37:29 +01:00
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] Add dedicated logging category for TabBox 2015-07-31 13:13:41 +02:00
tabbox_logging.h [tabbox] Add dedicated logging category for TabBox 2015-07-31 13:13:41 +02:00
tabboxconfig.cpp Remove show outline from TabBox 2013-04-24 10:02:57 +02:00
tabboxconfig.h [tabbox] Try locating the WindowSwitcher QML through configured lnf package 2014-10-28 16:53:23 +01:00
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