Changeset View
Changeset View
Standalone View
Standalone View
src/platforms/xcb/kwindowsystem.cpp
Show First 20 Lines • Show All 290 Lines • ▼ Show 20 Line(s) | 290 | if ((dirtyProperties & NET::WMStrut) != 0) { | |||
---|---|---|---|---|---|
291 | removeStrutWindow(eventWindow); | 291 | removeStrutWindow(eventWindow); | ||
292 | if (!possibleStrutWindows.contains(eventWindow)) { | 292 | if (!possibleStrutWindows.contains(eventWindow)) { | ||
293 | possibleStrutWindows.append(eventWindow); | 293 | possibleStrutWindows.append(eventWindow); | ||
294 | } | 294 | } | ||
295 | } | 295 | } | ||
296 | if (dirtyProperties || dirtyProperties2) { | 296 | if (dirtyProperties || dirtyProperties2) { | ||
297 | emit s_q->windowChanged(eventWindow); | 297 | emit s_q->windowChanged(eventWindow); | ||
298 | emit s_q->windowChanged(eventWindow, dirtyProperties, dirtyProperties2); | 298 | emit s_q->windowChanged(eventWindow, dirtyProperties, dirtyProperties2); | ||
299 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | 299 | #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 0) | ||
300 | unsigned long dirty[ 2 ] = {dirtyProperties, dirtyProperties2}; | 300 | unsigned long dirty[ 2 ] = {dirtyProperties, dirtyProperties2}; | ||
301 | emit s_q->windowChanged(eventWindow, dirty); | 301 | emit s_q->windowChanged(eventWindow, dirty); | ||
302 | emit s_q->windowChanged(eventWindow, dirtyProperties); | 302 | emit s_q->windowChanged(eventWindow, dirtyProperties); | ||
303 | #endif | 303 | #endif | ||
304 | if ((dirtyProperties & NET::WMStrut) != 0) { | 304 | if ((dirtyProperties & NET::WMStrut) != 0) { | ||
305 | emit s_q->strutChanged(); | 305 | emit s_q->strutChanged(); | ||
306 | } | 306 | } | ||
307 | } | 307 | } | ||
▲ Show 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 445 | { | |||
446 | FilterInfo what = INFO_BASIC; | 446 | FilterInfo what = INFO_BASIC; | ||
447 | if (signal == QMetaMethod::fromSignal(&KWindowSystem::workAreaChanged)) { | 447 | if (signal == QMetaMethod::fromSignal(&KWindowSystem::workAreaChanged)) { | ||
448 | what = INFO_WINDOWS; | 448 | what = INFO_WINDOWS; | ||
449 | } else if (signal == QMetaMethod::fromSignal(&KWindowSystem::strutChanged)) { | 449 | } else if (signal == QMetaMethod::fromSignal(&KWindowSystem::strutChanged)) { | ||
450 | what = INFO_WINDOWS; | 450 | what = INFO_WINDOWS; | ||
451 | } else if (signal == QMetaMethod::fromSignal(static_cast<void (KWindowSystem::*)(WId, NET::Properties, NET::Properties2)>(&KWindowSystem::windowChanged))) { | 451 | } else if (signal == QMetaMethod::fromSignal(static_cast<void (KWindowSystem::*)(WId, NET::Properties, NET::Properties2)>(&KWindowSystem::windowChanged))) { | ||
452 | what = INFO_WINDOWS; | 452 | what = INFO_WINDOWS; | ||
453 | } | 453 | } | ||
454 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | 454 | #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 0) | ||
455 | else if (signal == QMetaMethod::fromSignal(static_cast<void (KWindowSystem::*)(WId, const unsigned long *)>(&KWindowSystem::windowChanged))) { | 455 | else if (signal == QMetaMethod::fromSignal(static_cast<void (KWindowSystem::*)(WId, const unsigned long *)>(&KWindowSystem::windowChanged))) { | ||
456 | what = INFO_WINDOWS; | 456 | what = INFO_WINDOWS; | ||
457 | } else if (signal == QMetaMethod::fromSignal(static_cast<void (KWindowSystem::*)(WId, uint)>(&KWindowSystem::windowChanged))) { | 457 | } else if (signal == QMetaMethod::fromSignal(static_cast<void (KWindowSystem::*)(WId, uint)>(&KWindowSystem::windowChanged))) { | ||
458 | what = INFO_WINDOWS; | 458 | what = INFO_WINDOWS; | ||
459 | } | 459 | } | ||
460 | #endif | 460 | #endif | ||
461 | else if (signal == QMetaMethod::fromSignal(static_cast<void (KWindowSystem::*)(WId)>(&KWindowSystem::windowChanged))) { | 461 | else if (signal == QMetaMethod::fromSignal(static_cast<void (KWindowSystem::*)(WId)>(&KWindowSystem::windowChanged))) { | ||
462 | what = INFO_WINDOWS; | 462 | what = INFO_WINDOWS; | ||
▲ Show 20 Lines • Show All 209 Lines • ▼ Show 20 Line(s) | |||||
672 | } | 672 | } | ||
673 | 673 | | |||
674 | void KWindowSystemPrivateX11::demandAttention(WId win, bool set) | 674 | void KWindowSystemPrivateX11::demandAttention(WId win, bool set) | ||
675 | { | 675 | { | ||
676 | NETWinInfo info(QX11Info::connection(), win, QX11Info::appRootWindow(), NET::WMState, NET::Properties2()); | 676 | NETWinInfo info(QX11Info::connection(), win, QX11Info::appRootWindow(), NET::WMState, NET::Properties2()); | ||
677 | info.setState(set ? NET::DemandsAttention : NET::States(), NET::DemandsAttention); | 677 | info.setState(set ? NET::DemandsAttention : NET::States(), NET::DemandsAttention); | ||
678 | } | 678 | } | ||
679 | 679 | | |||
680 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | 680 | #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 0) | ||
681 | WId KWindowSystemPrivateX11::transientFor(WId win) | 681 | WId KWindowSystemPrivateX11::transientFor(WId win) | ||
682 | { | 682 | { | ||
683 | KWindowInfo info(win, NET::Properties(), NET::WM2TransientFor); | 683 | KWindowInfo info(win, NET::Properties(), NET::WM2TransientFor); | ||
684 | return info.transientFor(); | 684 | return info.transientFor(); | ||
685 | } | 685 | } | ||
686 | #endif | | |||
687 | 686 | | |||
688 | #ifndef KWINDOWSYSTEM_NO_DEPRECATED | | |||
689 | WId KWindowSystemPrivateX11::groupLeader(WId win) | 687 | WId KWindowSystemPrivateX11::groupLeader(WId win) | ||
690 | { | 688 | { | ||
691 | KWindowInfo info(win, NET::Properties(), NET::WM2GroupLeader); | 689 | KWindowInfo info(win, NET::Properties(), NET::WM2GroupLeader); | ||
692 | return info.groupLeader(); | 690 | return info.groupLeader(); | ||
693 | } | 691 | } | ||
694 | #endif | 692 | #endif | ||
695 | 693 | | |||
696 | QPixmap KWindowSystemPrivateX11::icon(WId win, int width, int height, bool scale, int flags) | 694 | QPixmap KWindowSystemPrivateX11::icon(WId win, int width, int height, bool scale, int flags) | ||
▲ Show 20 Lines • Show All 522 Lines • Show Last 20 Lines |