kwin/tabbox
Martin Gräßlin 12a4923959 [kwin] Use std::find_if and lambda functions for Workspace::findUnmanaged
Instead of passing the macro based Predicate to findUnmanaged it now
expects a function which can be passed to std::find_if.

Existing code like:
xcb_window_t window; // our test window
Unmanaged *u = findUnmanaged(WindowMatchPredicated(window));

becomes:
Unmanaged *u = findUnmanaged([window](const Unmanaged *u) {
    return u->window() == window;
});

In addition an overload is added which takes the window id to cover
the common case to search for an Unmanaged by its ID. The above example
becomes:
Unmanaged *u = findUnmanaged(window);

The advantage is that it is way more flexible and has the logic what
to check for directly with the code and not hidden in the macro
definition.
2014-03-25 15:17:10 +01:00
..
autotests [kwin] Port autotests away from kde4_add_unit_test 2014-03-18 11:49:53 +01:00
qml SVN_SILENT made messages (.desktop file) 2014-03-24 04:35:26 +00:00
CMakeLists.txt [kwin] Rename tests subdirectories to autotests 2014-01-30 11:01:59 +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
desktopchain.cpp Move Desktop Chain management from Workspace into own class 2013-01-07 09:47:51 +01: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) 2014-02-18 05:12:30 +00:00
kwinwindowswitcher.desktop SVN_SILENT made messages (.desktop file) 2014-02-18 05:12:30 +00:00
switcheritem.cpp [kwin/tabbox] Use a QmlComponent instead of a QQuickView for TabBox 2013-12-12 09:37:29 +01:00
switcheritem.h [kwin/tabbox] Use a QmlComponent instead of a QQuickView for TabBox 2013-12-12 09:37:29 +01:00
tabbox.cpp [kwin] Use std::find_if and lambda functions for Workspace::findUnmanaged 2014-03-25 15:17:10 +01:00
tabbox.h Properly support key events in TabBox over InputRedirection 2014-03-19 14:14:56 +01:00
tabboxconfig.cpp Remove show outline from TabBox 2013-04-24 10:02:57 +02:00
tabboxconfig.h Fix no cast to/from ASCII intrduced issues 2013-07-24 09:58:33 +02:00
tabboxhandler.cpp [kwin] Use QQmlEngine from Scripting in TabBox 2014-03-10 09:09:01 +01:00
tabboxhandler.h [kwin] Use a QIcon in Client for the icons instead of Pixmaps 2013-12-06 14:41:23 +01:00