From 1d1cb9be06ee80a0d3dbcc77561a7d173ff7a659 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 21 May 2012 13:34:09 +0000 Subject: Fix NxWM bug: old window being minimized when new window open git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4757 42af7a65-404d-4744-a932-0658087f49c3 --- NxWidgets/nxwm/src/ctaskbar.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'NxWidgets/nxwm/src/ctaskbar.cxx') diff --git a/NxWidgets/nxwm/src/ctaskbar.cxx b/NxWidgets/nxwm/src/ctaskbar.cxx index 111d800e9..c494fcba3 100644 --- a/NxWidgets/nxwm/src/ctaskbar.cxx +++ b/NxWidgets/nxwm/src/ctaskbar.cxx @@ -506,8 +506,7 @@ bool CTaskbar::startApplication(IApplication *app, bool minimized) return false; } - // Has the window manager been started? Or were we ask to start - // the application minimized? + // Were we ask to start the application minimized? if (minimized) { @@ -551,11 +550,8 @@ bool CTaskbar::topApplication(IApplication *app) if (m_topApp) { - // Yes.. then minimize the application - - m_topApp->setMinimized(true); - - // And make the application non-visible + // Yes.. make the application non-visible (it is still maximized and + // will reappear when the window above it is minimized or closed). hideApplicationWindow(m_topApp); } -- cgit v1.2.3