Use SizeConstraints instead of window events

This commit is contained in:
Heilig Benedek 2017-11-13 00:35:39 +01:00
parent ca76dda6a6
commit bb5eecc16c
4 changed files with 16 additions and 17 deletions

View file

@ -228,12 +228,15 @@ class NativeWindowViews : public NativeWindow,
// To disable the mouse events.
std::unique_ptr<EventDisabler> event_disabler_;
#endif
#if defined(OS_WIN) || defined(USE_X11)
// The "resizable" flag on Linux is implemented by setting size constraints,
// we need to make sure size constraints are restored when window becomes
// resizable again.
// resizable again. This is also used on Windows, to keep taskbar resize
// events from resizing the window.
extensions::SizeConstraints old_size_constraints_;
#elif defined(OS_WIN)
#endif
#if defined(OS_WIN)
// Weak ref.
AtomDesktopWindowTreeHostWin* atom_desktop_window_tree_host_win_;