From 30eef96ca0dfe2a5271410d5a100b13749f4667c Mon Sep 17 00:00:00 2001 From: "cst%andrew.cmu.edu" Date: Sun, 13 Nov 2005 22:04:32 +0000 Subject: [PATCH] Bug 316150 Don't fade splash screen fade when using remote desktop r=ere sr=neil --- xpfe/bootstrap/nsNativeAppSupportWin.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xpfe/bootstrap/nsNativeAppSupportWin.cpp b/xpfe/bootstrap/nsNativeAppSupportWin.cpp index cef7c68c6e15..884ce67dc031 100644 --- a/xpfe/bootstrap/nsNativeAppSupportWin.cpp +++ b/xpfe/bootstrap/nsNativeAppSupportWin.cpp @@ -115,6 +115,10 @@ struct JSContext; #define WS_EX_LAYERED 0x80000 #endif +#ifndef SM_REMOTESESSION +#define SM_REMOTESESSION 0x1000 +#endif + static HWND hwndForDOMWindow( nsISupports * ); static @@ -548,7 +552,9 @@ nsSplashScreenWin::DialogProc( HWND dlg, UINT msg, WPARAM wp, LPARAM lp ) { HMODULE user32lib = GetModuleHandle("user32.dll"); mSetLayeredWindowAttributesProc = (MOZ_SetLayeredWindowAttributesProc) GetProcAddress(user32lib, "SetLayeredWindowAttributes"); - if (mSetLayeredWindowAttributesProc) { + + // only do fade if it's supported and the user isn't using remote desktop + if (mSetLayeredWindowAttributesProc && !GetSystemMetrics(SM_REMOTESESSION)) { SetWindowLong(dlg, GWL_EXSTYLE, GetWindowLong(dlg, GWL_EXSTYLE) | WS_EX_LAYERED); mSetLayeredWindowAttributesProc(dlg, 0,