summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-02-07 13:39:30 -0500
committerAndreas Kling <kling@serenityos.org>2022-02-08 16:37:46 +0100
commit32be05957a1d000c18364f1fce52b59fcde6ff68 (patch)
treefde3c67b7540271aeafaf92464ae55579c39185e
parent1607fd511fdfc590042ea5384ebef793cc515dab (diff)
downloadserenity-32be05957a1d000c18364f1fce52b59fcde6ff68.zip
WindowServer: Fix comments in WindowManager
-rw-r--r--Userland/Services/WindowServer/WindowManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp
index ff9226a295..e77452a415 100644
--- a/Userland/Services/WindowServer/WindowManager.cpp
+++ b/Userland/Services/WindowServer/WindowManager.cpp
@@ -770,7 +770,7 @@ bool WindowManager::process_ongoing_window_move(MouseEvent& event)
if (m_move_window->is_maximized()) {
auto pixels_moved_from_start = event.position().pixels_moved(m_move_origin);
if (pixels_moved_from_start > 5) {
- // dbgln("[WM] de-maximizing window");
+ dbgln_if(MOVE_DEBUG, "[WM] de-maximizing window");
m_move_origin = event.position();
if (m_move_origin.y() <= secondary_deadzone + desktop.top())
return true;
@@ -804,7 +804,8 @@ bool WindowManager::process_ongoing_window_move(MouseEvent& event)
Gfx::IntPoint pos = m_move_window_origin.translated(event.position() - m_move_origin);
m_move_window->set_position_without_repaint(pos);
// "Bounce back" the window if it would end up too far outside the screen.
- // If the user has let go of Mod_Super, maybe they didn't intentionally press it to begin with. Therefore, refuse to go into a state where knowledge about super-drags is necessary.
+ // If the user has let go of Mod_Super, maybe they didn't intentionally press it to begin with.
+ // Therefore, refuse to go into a state where knowledge about super-drags is necessary.
bool force_titlebar_visible = !(m_keyboard_modifiers & Mod_Super);
m_move_window->nudge_into_desktop(&cursor_screen, force_titlebar_visible);
} else if (pixels_moved_from_start > 5) {