Changeset View
Changeset View
Standalone View
Standalone View
src/KNotificationBackend.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | |||||
75 | { | 75 | { | ||
76 | return m_enabled; | 76 | return m_enabled; | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | bool | 79 | bool | ||
80 | KNotificationBackend::isFullscreenWindowActive() const | 80 | KNotificationBackend::isFullscreenWindowActive() const | ||
81 | { | 81 | { | ||
82 | // Get information of the active window. | 82 | // Get information of the active window. | ||
83 | KWindowInfo activeWindowInfo = KWindowSystem::windowInfo( KWindowSystem::activeWindow(), NET::WMState ); | 83 | KWindowInfo activeWindowInfo( KWindowSystem::activeWindow(), NET::WMState ); | ||
84 | 84 | | |||
85 | // Check if it is running in fullscreen mode. | 85 | // Check if it is running in fullscreen mode. | ||
86 | return activeWindowInfo.hasState( NET::FullScreen ); | 86 | return activeWindowInfo.hasState( NET::FullScreen ); | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | void | 89 | void | ||
90 | KNotificationBackend::show( const QString &title, const QString &body, const QPixmap &pixmap ) | 90 | KNotificationBackend::show( const QString &title, const QString &body, const QPixmap &pixmap ) | ||
91 | { | 91 | { | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |