summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-02-24 02:05:43 +0330
committerAndreas Kling <kling@serenityos.org>2021-02-24 13:07:28 +0100
commit857cdee0d0e88a2681126ce564b61ad337a7f898 (patch)
tree2e706b9a395f75af01dfa3b99c793424c1f645d6 /Userland/Services
parent71de5433f8b2c97ccc289b656a626b070b744a47 (diff)
downloadserenity-857cdee0d0e88a2681126ce564b61ad337a7f898.zip
AK: Make dbgln_if() avoid evaluating the arguments when disabled
Naturally, this makes the `enabled` flag on dbgln() obsolete.
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/WindowServer/WindowManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp
index d3901a3131..a4a84fe82c 100644
--- a/Userland/Services/WindowServer/WindowManager.cpp
+++ b/Userland/Services/WindowServer/WindowManager.cpp
@@ -589,7 +589,7 @@ bool WindowManager::process_ongoing_window_resize(const MouseEvent& event, Windo
auto max_rect = maximized_window_rect(*m_resize_window);
if (event.y() > max_rect.bottom()) {
- dbgln<RESIZE_DEBUG>("Should Maximize vertically");
+ dbgln_if(RESIZE_DEBUG, "Should Maximize vertically");
m_resize_window->set_vertically_maximized();
m_resize_window = nullptr;
m_resizing_mouse_button = MouseButton::None;