Attempt to workaround bug in wxWidgets IsShownOnScreen() method

This commit is contained in:
Enrico Turri 2018-06-12 09:18:25 +02:00
parent 5f02669d2d
commit af3d07bb05
8 changed files with 34 additions and 19 deletions

View file

@ -358,6 +358,9 @@ private:
Model* m_model;
bool m_dirty;
// the active member has been introduced to overcome a bug in wxWidgets method IsShownOnScreen() which always return true
// when a window is inside a wxNotebook
bool m_active;
bool m_initialized;
bool m_use_VBOs;
bool m_force_zoom_to_bed_enabled;
@ -404,7 +407,7 @@ public:
bool set_current();
bool is_shown_on_screen() const;
void set_active(bool active);
unsigned int get_volumes_count() const;
void reset_volumes();
@ -517,6 +520,7 @@ public:
Point get_local_mouse_position() const;
private:
bool _is_shown_on_screen() const;
void _force_zoom_to_bed();
void _resize(unsigned int w, unsigned int h);