mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.Everything: The modifications in this commit were automatically made using the following command: find . -name '*.cpp' -exec sed -i -E 's/dbg\(\) << ("[^"{]*");/dbgln\(\1\);/' {} \;
This commit is contained in:
parent
40b8e21115
commit
938e5c7719
95 changed files with 331 additions and 331 deletions
|
@ -515,7 +515,7 @@ bool WindowManager::process_ongoing_window_move(MouseEvent& event, Window*& hove
|
|||
process_event_for_doubleclick(*m_move_window, event);
|
||||
if (event.type() == Event::MouseDoubleClick) {
|
||||
#if defined(DOUBLECLICK_DEBUG)
|
||||
dbg() << "[WM] Click up became doubleclick!";
|
||||
dbgln("[WM] Click up became doubleclick!");
|
||||
#endif
|
||||
m_move_window->set_maximized(!m_move_window->is_maximized());
|
||||
}
|
||||
|
@ -528,7 +528,7 @@ bool WindowManager::process_ongoing_window_move(MouseEvent& event, Window*& hove
|
|||
#ifdef MOVE_DEBUG
|
||||
dbg() << "[WM] Moving, origin: " << m_move_origin << ", now: " << event.position();
|
||||
if (m_move_window->is_maximized()) {
|
||||
dbg() << " [!] The window is still maximized. Not moving yet.";
|
||||
dbgln(" [!] The window is still maximized. Not moving yet.");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -540,7 +540,7 @@ bool WindowManager::process_ongoing_window_move(MouseEvent& event, Window*& hove
|
|||
auto pixels_moved_from_start = event.position().pixels_moved(m_move_origin);
|
||||
// dbg() << "[WM] " << pixels_moved_from_start << " moved since start of window move";
|
||||
if (pixels_moved_from_start > 5) {
|
||||
// dbg() << "[WM] de-maximizing window";
|
||||
// dbgln("[WM] de-maximizing window");
|
||||
m_move_origin = event.position();
|
||||
if (m_move_origin.y() <= secondary_deadzone)
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue