aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/notifier/notifier.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/General/notifier/notifier.cpp b/src/plugins/General/notifier/notifier.cpp
index 6006cee93..2b7b2a6bf 100644
--- a/src/plugins/General/notifier/notifier.cpp
+++ b/src/plugins/General/notifier/notifier.cpp
@@ -34,6 +34,10 @@
#include <X11/Xutil.h>
#endif
+#ifdef Q_OS_WIN
+#include <windows.h>
+#endif
+
#include "popupwidget.h"
#include "notifier.h"
@@ -212,6 +216,19 @@ bool Notifier::hasFullscreenWindow() const
XFree(prop);
return false;
}
+#elif defined(Q_OS_WIN)
+bool Notifier::hasFullscreenWindow() const
+{
+ if(!m_disableForFullScreen)
+ return false;
+ int width = GetSystemMetrics(SM_CXSCREEN);
+ int height = GetSystemMetrics(SM_CYSCREEN);
+
+ RECT windowRect;
+ GetWindowRect(GetForegroundWindow(), &windowRect);
+
+ return (width == windowRect.right - windowRect.left) && (height == windowRect.bottom - windowRect.top);
+}
#else
bool Notifier::hasFullscreenWindow() const
{