Fix restoring window visibility (Windows/Mac) #7976
This commit is contained in:
parent
ef206d8066
commit
498a58bd25
@ -26,7 +26,11 @@ bool VisibilityTracker::_use_window_manager_visibility = true;
|
||||
|
||||
VisibilityTracker::VisibilityTracker (Gtk::Window& win)
|
||||
: _window (win)
|
||||
#if (defined PLATFORM_WINDOWS || defined __APPLE__)
|
||||
, _visibility (GdkVisibilityState (0))
|
||||
#else
|
||||
, _visibility (GDK_VISIBILITY_FULLY_OBSCURED)
|
||||
#endif
|
||||
{
|
||||
_window.add_events (Gdk::VISIBILITY_NOTIFY_MASK);
|
||||
_window.signal_visibility_notify_event().connect (sigc::mem_fun (*this, &VisibilityTracker::handle_visibility_notify_event));
|
||||
|
Loading…
Reference in New Issue
Block a user