From c418e2bedcd5a07ddba0a33b36637fca47411c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 19 Feb 2011 18:00:05 +0000 Subject: [PATCH] Fixed a bug noticed by Axel (thanks!): Don't store the fullscreen window frame when quitting ShowImage in fullscreen mode, but the old window frame instead which would be restored when leaving fullscreen more. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40561 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/showimage/ShowImageWindow.cpp b/src/apps/showimage/ShowImageWindow.cpp index 57660679a8..db1e10efc7 100644 --- a/src/apps/showimage/ShowImageWindow.cpp +++ b/src/apps/showimage/ShowImageWindow.cpp @@ -1369,7 +1369,10 @@ ShowImageWindow::QuitRequested() ShowImageSettings* settings = my_app->Settings(); if (settings->Lock()) { - settings->SetRect("WindowFrame", Frame()); + if (fFullScreen) + settings->SetRect("WindowFrame", fWindowFrame); + else + settings->SetRect("WindowFrame", Frame()); settings->Unlock(); }