FIX: speed switch popup window display bug

Jira: [STUDIO-14642]
Change-Id: If95ca1b448b2d3a03c2f6d6c0b5faad4a3c04e8c
(cherry picked from commit 08943207564c0256d5a5efea9440e55efb7ccea0)
This commit is contained in:
hemai
2025-10-28 15:29:54 +08:00
committed by Noisyfox
parent ada573a1fd
commit 32af91cf61
3 changed files with 48 additions and 3 deletions
+11 -3
View File
@@ -2,6 +2,7 @@
#define slic3r_GUI_PopupWindow_hpp_
#include <wx/popupwin.h>
#include <wx/event.h>
class PopupWindow : public wxPopupTransientWindow
{
@@ -10,11 +11,12 @@ public:
~PopupWindow();
PopupWindow(wxWindow *parent, int style = wxBORDER_NONE)
{ Create(parent, style); }
PopupWindow(wxWindow *parent, int style = wxBORDER_NONE) { Create(parent, style); }
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
#ifdef __WXMSW__
void BindUnfocusEvent();
#endif
private:
#ifdef __WXOSX__
void OnMouseEvent2(wxMouseEvent &evt);
@@ -24,6 +26,12 @@ private:
#ifdef __WXGTK__
void topWindowActiavate(wxActivateEvent &event);
#endif
#ifdef __WXMSW__
void topWindowActivate(wxActivateEvent &event);
void topWindowIconize(wxIconizeEvent &event);
void topWindowShow(wxShowEvent &event);
#endif
};
#endif // !slic3r_GUI_PopupWindow_hpp_