[vlc-devel] commit: qt4: don't count unselectable windows (Hannes Domani )
git version control
git at videolan.org
Sat Dec 6 02:12:53 CET 2008
vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Mon Nov 3 18:47:35 2008 +0100| [bbff06b09c62b5e66b652c6d23ffd42fc735407b] | committer: Jean-Baptiste Kempf
qt4: don't count unselectable windows
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bbff06b09c62b5e66b652c6d23ffd42fc735407b
---
modules/gui/qt4/main_interface.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 32e660e..71ed7cf 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -927,12 +927,15 @@ void MainInterface::toggleUpdateSystrayMenu()
/* Visible */
#ifdef WIN32
/* check if any visible window is above vlc in the z-order,
- * but ignore the ones always on top */
+ * but ignore the ones always on top
+ * and the ones which can't be activated */
WINDOWINFO wi;
HWND hwnd;
wi.cbSize = sizeof( WINDOWINFO );
for( hwnd = GetNextWindow( internalWinId(), GW_HWNDPREV );
- hwnd && !IsWindowVisible( hwnd );
+ hwnd && ( !IsWindowVisible( hwnd ) ||
+ ( GetWindowInfo( hwnd, &wi ) &&
+ (wi.dwExStyle&WS_EX_NOACTIVATE) ) );
hwnd = GetNextWindow( hwnd, GW_HWNDPREV ) );
if( !hwnd || !GetWindowInfo( hwnd, &wi ) ||
(wi.dwExStyle&WS_EX_TOPMOST) )
More information about the vlc-devel
mailing list