From 8ce4644fbd41b6d64e926bbab30a7665a9b3597e Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 26 Mar 2010 17:34:44 +0000 Subject: [PATCH] If SetFullScreen() was called on a hidden BDirectWindow, it wouldn't be set to fullscreen (since that code checks for a Screen object, and is null in that case). So we also call ResizeToFullScreen() in ServerWindow::_Show(), if needed. Fix ticket #4456. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35959 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index 18b9f62c12..da2732222a 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -347,6 +347,9 @@ ServerWindow::_Show() // instead of doing it from this thread. fDesktop->UnlockSingleWindow(); fDesktop->ShowWindow(fWindow); + if (fDirectWindowInfo && fDirectWindowInfo->IsFullScreen()) + _ResizeToFullScreen(); + fDesktop->LockSingleWindow(); }