1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

WindowServer: Actually don't bring up system menu during move/resize

It was still possible to pop up the system menu by letting go of the
mouse button before letting go of the Logo key. This patch fixes that.
This commit is contained in:
Andreas Kling 2020-01-12 02:33:24 +01:00
parent 17135c9704
commit 0d2bfc4ea0
2 changed files with 8 additions and 6 deletions

View file

@ -253,6 +253,8 @@ private:
Point m_resize_origin;
ResizeDirection m_resize_direction { ResizeDirection::None };
bool m_moved_or_resized_since_logo_keydown { false };
u8 m_keyboard_modifiers { 0 };
WSWindowSwitcher m_switcher;