summaryrefslogtreecommitdiff
path: root/Servers/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-01 21:10:40 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-01 21:11:27 +0100
commita005f14a736aeea2b7da53e15b2cbe71ac159b3a (patch)
treee831a132e034a2e71b6bd3e5a28136c283719fc0 /Servers/WindowServer
parent93ce1bb4a19a2d3da276f57ab13dd6af08c6e40f (diff)
downloadserenity-a005f14a736aeea2b7da53e15b2cbe71ac159b3a.zip
WindowServer: Don't tile non-resizable windows
Thanks Tibor for pointing this out. :^)
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r--Servers/WindowServer/WSWindowManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/WindowServer/WSWindowManager.cpp b/Servers/WindowServer/WSWindowManager.cpp
index c38e9a5acd..4877853f54 100644
--- a/Servers/WindowServer/WSWindowManager.cpp
+++ b/Servers/WindowServer/WSWindowManager.cpp
@@ -584,9 +584,9 @@ bool WSWindowManager::process_ongoing_window_move(WSMouseEvent& event, WSWindow*
auto pixels_moved_from_start = event.position().pixels_moved(m_move_origin);
const int tiling_deadzone = 5;
- if (event.x() <= tiling_deadzone) {
+ if (m_move_window->is_resizable() && event.x() <= tiling_deadzone) {
m_move_window->set_tiled(WindowTileType::Left);
- } else if (event.x() >= WSScreen::the().width() - tiling_deadzone) {
+ } else if (m_move_window->is_resizable() && event.x() >= WSScreen::the().width() - tiling_deadzone) {
m_move_window->set_tiled(WindowTileType::Right);
} else if (pixels_moved_from_start > 5 || m_move_window->tiled() == WindowTileType::None) {
m_move_window->set_tiled(WindowTileType::None);