Changeset View
Changeset View
Standalone View
Standalone View
tabbox/tabboxhandler.cpp
| Show All 36 Lines | |||||
| 37 | #include <QStandardPaths> | 37 | #include <QStandardPaths> | ||
| 38 | #include <QTimer> | 38 | #include <QTimer> | ||
| 39 | #include <QQmlContext> | 39 | #include <QQmlContext> | ||
| 40 | #include <QQmlComponent> | 40 | #include <QQmlComponent> | ||
| 41 | #include <QQmlEngine> | 41 | #include <QQmlEngine> | ||
| 42 | #include <QQuickItem> | 42 | #include <QQuickItem> | ||
| 43 | #include <QQuickWindow> | 43 | #include <QQuickWindow> | ||
| 44 | #include <X11/Xlib.h> | 44 | #include <X11/Xlib.h> | ||
| 45 | #include <qpa/qwindowsysteminterface.h> | ||||
| 45 | // KDE | 46 | // KDE | ||
| 46 | #include <KLocalizedString> | 47 | #include <KLocalizedString> | ||
| 47 | #include <KProcess> | 48 | #include <KProcess> | ||
| 48 | #include <KPackage/Package> | 49 | #include <KPackage/Package> | ||
| 49 | #include <KPackage/PackageLoader> | 50 | #include <KPackage/PackageLoader> | ||
| 50 | 51 | | |||
| 51 | namespace KWin | 52 | namespace KWin | ||
| 52 | { | 53 | { | ||
| ▲ Show 20 Lines • Show All 286 Lines • ▼ Show 20 Line(s) | 326 | if (SwitcherItem *item = switcherItem()) { | |||
| 339 | item->setCurrentIndex(indexRow); | 340 | item->setCurrentIndex(indexRow); | ||
| 340 | item->setNoModifierGrab(q->noModifierGrab()); | 341 | item->setNoModifierGrab(q->noModifierGrab()); | ||
| 341 | // everything is prepared, so let's make the whole thing visible | 342 | // everything is prepared, so let's make the whole thing visible | ||
| 342 | item->setVisible(true); | 343 | item->setVisible(true); | ||
| 343 | } | 344 | } | ||
| 344 | if (QWindow *w = window()) { | 345 | if (QWindow *w = window()) { | ||
| 345 | wheelAngleDelta = 0; | 346 | wheelAngleDelta = 0; | ||
| 346 | w->installEventFilter(q); | 347 | w->installEventFilter(q); | ||
| 348 | // pretend to activate the window to enable accessibility notifications | ||||
| 349 | QWindowSystemInterface::handleWindowActivated(w, Qt::TabFocusReason); | ||||
| 347 | } | 350 | } | ||
| 348 | #endif | 351 | #endif | ||
| 349 | } | 352 | } | ||
| 350 | 353 | | |||
| 351 | /*********************************************** | 354 | /*********************************************** | ||
| 352 | * TabBoxHandler | 355 | * TabBoxHandler | ||
| 353 | ***********************************************/ | 356 | ***********************************************/ | ||
| 354 | 357 | | |||
| ▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines | |||||