mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
WindowServer: Add missing <AK/Debug.h> include and use dbgln_if()
This commit is contained in:
parent
2e6de99f1e
commit
d342e9608c
1 changed files with 2 additions and 3 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "Menubar.h"
|
||||
#include "Screen.h"
|
||||
#include "Window.h"
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <AK/Vector.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()) {
|
||||
process_event_for_doubleclick(*m_move_window, event);
|
||||
if (event.type() == Event::MouseDoubleClick) {
|
||||
#if defined(DOUBLECLICK_DEBUG)
|
||||
dbgln("[WM] Click up became doubleclick!");
|
||||
#endif
|
||||
dbgln_if(DOUBLECLICK_DEBUG, "[WM] Click up became doubleclick!");
|
||||
m_move_window->set_maximized(!m_move_window->is_maximized());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue