WindowServer: Add missing <AK/Debug.h> include and use dbgln_if()

This commit is contained in:
Andreas Kling 2021-04-21 20:10:06 +02:00
parent 2e6de99f1e
commit d342e9608c
Notes: sideshowbarker 2024-07-18 19:16:38 +09:00

View file

@ -32,6 +32,7 @@
#include "Menubar.h" #include "Menubar.h"
#include "Screen.h" #include "Screen.h"
#include "Window.h" #include "Window.h"
#include <AK/Debug.h>
#include <AK/StdLibExtras.h> #include <AK/StdLibExtras.h>
#include <AK/Vector.h> #include <AK/Vector.h>
#include <LibGUI/WindowManagerServerConnection.h> #include <LibGUI/WindowManagerServerConnection.h>
@ -557,9 +558,7 @@ bool WindowManager::process_ongoing_window_move(MouseEvent& event, Window*& hove
if (m_move_window->is_resizable()) { if (m_move_window->is_resizable()) {
process_event_for_doubleclick(*m_move_window, event); process_event_for_doubleclick(*m_move_window, event);
if (event.type() == Event::MouseDoubleClick) { if (event.type() == Event::MouseDoubleClick) {
#if defined(DOUBLECLICK_DEBUG) dbgln_if(DOUBLECLICK_DEBUG, "[WM] Click up became doubleclick!");
dbgln("[WM] Click up became doubleclick!");
#endif
m_move_window->set_maximized(!m_move_window->is_maximized()); m_move_window->set_maximized(!m_move_window->is_maximized());
} }
} }