[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39423] trunk/blender/intern/ghost/intern/ GHOST_WindowWin32.cpp: Window was losing focus when switching from full screen via Alt+F11
Alexander Kuznetsov
kuzsasha at gmail.com
Mon Aug 15 18:26:37 CEST 2011
Revision: 39423
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39423
Author: alexk
Date: 2011-08-15 16:26:37 +0000 (Mon, 15 Aug 2011)
Log Message:
-----------
Window was losing focus when switching from full screen via Alt+F11
Fixes [#28243]
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_WindowWin32.cpp
Modified: trunk/blender/intern/ghost/intern/GHOST_WindowWin32.cpp
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowWin32.cpp 2011-08-15 16:25:05 UTC (rev 39422)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowWin32.cpp 2011-08-15 16:26:37 UTC (rev 39423)
@@ -612,7 +612,6 @@
wp.showCmd = SW_SHOWMINIMIZED;
break;
case GHOST_kWindowStateMaximized:
- ShowWindow(m_hWnd, SW_HIDE);
wp.showCmd = SW_SHOWMAXIMIZED;
SetWindowLongPtr(m_hWnd, GWL_STYLE, WS_OVERLAPPEDWINDOW);
break;
@@ -629,12 +628,12 @@
break;
case GHOST_kWindowStateNormal:
default:
- ShowWindow(m_hWnd, SW_HIDE);
wp.showCmd = SW_SHOWNORMAL;
SetWindowLongPtr(m_hWnd, GWL_STYLE, WS_OVERLAPPEDWINDOW);
break;
}
- return ::SetWindowPlacement(m_hWnd, &wp) == TRUE ? GHOST_kSuccess : GHOST_kFailure;
+ SetWindowPos(m_hWnd, 0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED); /*Clears window cache for SetWindowLongPtr */
+ return ::SetWindowPlacement(m_hWnd, &wp) == TRUE ? GHOST_kSuccess : GHOST_kFailure;
}
More information about the Bf-blender-cvs
mailing list