Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/xwindowtasksmodel.cpp
Show All 31 Lines | |||||
32 | #include <KStartupInfo> | 32 | #include <KStartupInfo> | ||
33 | #include <KSycoca> | 33 | #include <KSycoca> | ||
34 | #include <KWindowInfo> | 34 | #include <KWindowInfo> | ||
35 | #include <KWindowSystem> | 35 | #include <KWindowSystem> | ||
36 | #include <processcore/processes.h> | 36 | #include <processcore/processes.h> | ||
37 | #include <processcore/process.h> | 37 | #include <processcore/process.h> | ||
38 | 38 | | |||
39 | #include <QBuffer> | 39 | #include <QBuffer> | ||
40 | #include <QDebug> | ||||
40 | #include <QDir> | 41 | #include <QDir> | ||
41 | #include <QIcon> | 42 | #include <QIcon> | ||
42 | #include <QFile> | 43 | #include <QFile> | ||
43 | #include <QRegularExpression> | 44 | #include <QRegularExpression> | ||
44 | #include <QSet> | 45 | #include <QSet> | ||
45 | #include <QStandardPaths> | 46 | #include <QStandardPaths> | ||
46 | #include <QTimer> | 47 | #include <QTimer> | ||
47 | #include <QX11Info> | 48 | #include <QX11Info> | ||
▲ Show 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | 208 | KWindowInfo info(window, | |||
208 | NET::WMWindowType | NET::WMState | NET::WMName | NET::WMVisibleName, | 209 | NET::WMWindowType | NET::WMState | NET::WMName | NET::WMVisibleName, | ||
209 | NET::WM2TransientFor); | 210 | NET::WM2TransientFor); | ||
210 | 211 | | |||
211 | NET::WindowType wType = info.windowType(NET::NormalMask | NET::DesktopMask | NET::DockMask | | 212 | NET::WindowType wType = info.windowType(NET::NormalMask | NET::DesktopMask | NET::DockMask | | ||
212 | NET::ToolbarMask | NET::MenuMask | NET::DialogMask | | 213 | NET::ToolbarMask | NET::MenuMask | NET::DialogMask | | ||
213 | NET::OverrideMask | NET::TopMenuMask | | 214 | NET::OverrideMask | NET::TopMenuMask | | ||
214 | NET::UtilityMask | NET::SplashMask); | 215 | NET::UtilityMask | NET::SplashMask); | ||
215 | 216 | | |||
217 | qDebug() << info.visibleName() << info->hasState(NET::SkipTaskbar); | ||||
mart: remove from the final commit | |||||
218 | | ||||
216 | const WId leader = info.transientFor(); | 219 | const WId leader = info.transientFor(); | ||
217 | 220 | | |||
218 | // Handle transient. | 221 | // Handle transient. | ||
219 | if (leader > 0 && leader != window && leader != QX11Info::appRootWindow() | 222 | if (leader > 0 && leader != window && leader != QX11Info::appRootWindow() | ||
220 | && !transients.contains(window) && windows.contains(leader)) { | 223 | && !transients.contains(window) && windows.contains(leader)) { | ||
221 | transients.insert(window); | 224 | transients.insert(window); | ||
222 | 225 | | |||
223 | // Update demands attention state for leader. | 226 | // Update demands attention state for leader. | ||
▲ Show 20 Lines • Show All 1092 Lines • Show Last 20 Lines |
remove from the final commit