Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/x11_platform.cpp
Show All 14 Lines | |||||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "x11_platform.h" | 20 | #include "x11_platform.h" | ||
21 | #include "x11cursor.h" | 21 | #include "x11cursor.h" | ||
22 | #include "edge.h" | 22 | #include "edge.h" | ||
23 | #include "windowselector.h" | ||||
23 | #include <config-kwin.h> | 24 | #include <config-kwin.h> | ||
24 | #include <kwinconfig.h> | 25 | #include <kwinconfig.h> | ||
25 | #if HAVE_EPOXY_GLX | 26 | #if HAVE_EPOXY_GLX | ||
26 | #include "glxbackend.h" | 27 | #include "glxbackend.h" | ||
27 | #endif | 28 | #endif | ||
28 | #if HAVE_X11_XINPUT | 29 | #if HAVE_X11_XINPUT | ||
29 | #include "xinputintegration.h" | 30 | #include "xinputintegration.h" | ||
30 | #endif | 31 | #endif | ||
▲ Show 20 Lines • Show All 237 Lines • ▼ Show 20 Line(s) | 268 | { | |||
268 | xcb_xfixes_hide_cursor(kwinApp()->x11Connection(), kwinApp()->x11RootWindow()); | 269 | xcb_xfixes_hide_cursor(kwinApp()->x11Connection(), kwinApp()->x11RootWindow()); | ||
269 | } | 270 | } | ||
270 | 271 | | |||
271 | void X11StandalonePlatform::doShowCursor() | 272 | void X11StandalonePlatform::doShowCursor() | ||
272 | { | 273 | { | ||
273 | xcb_xfixes_show_cursor(kwinApp()->x11Connection(), kwinApp()->x11RootWindow()); | 274 | xcb_xfixes_show_cursor(kwinApp()->x11Connection(), kwinApp()->x11RootWindow()); | ||
274 | } | 275 | } | ||
275 | 276 | | |||
277 | void X11StandalonePlatform::startInteractiveWindowSelection(std::function<void(KWin::Toplevel*)> callback, const QByteArray &cursorName) | ||||
278 | { | ||||
279 | if (m_windowSelector.isNull()) { | ||||
280 | m_windowSelector.reset(new WindowSelector); | ||||
281 | } | ||||
282 | m_windowSelector->start(callback, cursorName); | ||||
283 | } | ||||
284 | | ||||
276 | } | 285 | } |