summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-23 08:13:26 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2007-05-23 08:13:26 +0000
commite1019b5bb58834b96ec02096f4ad57ce77431ffa (patch)
tree24b5e8b22385686551af131f203023e7a4ab5735
parentce7ed8b5d95e707528bc44b2b0276559e4d21910 (diff)
fix for full-screen detection patch
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@182 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r--yapp/YAPP.mdsp22
-rw-r--r--yapp/message_pump.cpp10
-rw-r--r--yapp/version.h2
3 files changed, 18 insertions, 16 deletions
diff --git a/yapp/YAPP.mdsp b/yapp/YAPP.mdsp
index ae3b86c..be85244 100644
--- a/yapp/YAPP.mdsp
+++ b/yapp/YAPP.mdsp
@@ -110,15 +110,15 @@ extraResourceOptions=
1=popups2.rc
2=version.rc
[History]
-common.h,2374
-popup_history.cpp,2330
-popwin.cpp,583
-resource.rc,23
-version.rc,24
-resource.h,2162
-popups2.rc,830
-popups2.cpp,1500
-..\..\include\m_plugins.h,0
+version.h,891
..\..\include\newpluginapi.h,1183
-message_pump.cpp,893
-version.h,175
+..\..\include\m_plugins.h,0
+popups2.cpp,1500
+popups2.rc,830
+resource.h,2162
+version.rc,24
+resource.rc,23
+popwin.cpp,583
+popup_history.cpp,2330
+common.h,2374
+message_pump.cpp,722
diff --git a/yapp/message_pump.cpp b/yapp/message_pump.cpp
index 93d783a..3e0349d 100644
--- a/yapp/message_pump.cpp
+++ b/yapp/message_pump.cpp
@@ -24,10 +24,12 @@ bool is_full_screen() {
// check foregroundwindow
hWnd = GetForegroundWindow();
- GetClientRect(hWnd, &ClientRect);
- if ((ClientRect.right - ClientRect.left) >= w && (ClientRect.bottom - ClientRect.top) >= h)
- return true;
-
+ if(hWnd && hWnd != GetDesktopWindow()) {
+ GetClientRect(hWnd, &ClientRect);
+ if ((ClientRect.right - ClientRect.left) >= w && (ClientRect.bottom - ClientRect.top) >= h)
+ return true;
+ }
+
// check other top level windows
while (hWnd = FindWindowEx(NULL, hWnd, NULL, NULL)) {
if(!IsWindowVisible(hWnd) || IsIconic(hWnd) || GetDesktopWindow() == hWnd)
diff --git a/yapp/version.h b/yapp/version.h
index 86572cb..cbdfa4c 100644
--- a/yapp/version.h
+++ b/yapp/version.h
@@ -4,7 +4,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 3
#define __RELEASE_NUM 1
-#define __BUILD_NUM 0
+#define __BUILD_NUM 1
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM