From fc2d36955aeffaaf53e96c08d14064b574e14277 Mon Sep 17 00:00:00 2001 From: waxfrenzy Date: Mon, 7 Jul 2003 21:59:32 +0000 Subject: [PATCH] Fixed so that device is only maximised in handle if not set to Minimised --- GUI/Widgets/Fl_DeviceGUI.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/Widgets/Fl_DeviceGUI.C b/GUI/Widgets/Fl_DeviceGUI.C index a8065d4..c50035e 100644 --- a/GUI/Widgets/Fl_DeviceGUI.C +++ b/GUI/Widgets/Fl_DeviceGUI.C @@ -129,13 +129,13 @@ int Fl_DeviceGUI::handle (int event) { } if (m_PluginWindow && !m_DelMe) { - if (m_PluginWindow->needs_resize()) { + if (m_PluginWindow->needs_resize() && !m_Minimised) { Maximise(); m_PluginWindow->needs_resize(false); } } - if (m_Minimised==false && !m_PluginWindow->visible()) { + if (!m_Minimised && !m_PluginWindow->visible()) { Minimise(); if (m_IconButton) m_IconButton->show(); }