mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
WindowServer: Add missing <AK/Debug.h> include and use dbgln_if()
This commit is contained in:
parent
2e6de99f1e
commit
d342e9608c
Notes:
sideshowbarker
2024-07-18 19:16:38 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d342e9608cb
|
@ -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…
Reference in a new issue