diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-01 10:51:58 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-01 10:51:58 +0100 |
commit | 6c2089c59d6b77c234a3a14b99a9fd9c5f3ae000 (patch) | |
tree | cee191af69bb0642ff0864cbe733dcbb5e1840c0 /WindowServer/WSWindowManager.cpp | |
parent | 1b16a2904493c80af95fa70869c814f7161f5fda (diff) | |
download | serenity-6c2089c59d6b77c234a3a14b99a9fd9c5f3ae000.zip |
Put miscellaneous debug spam behind #ifdefs.
Diffstat (limited to 'WindowServer/WSWindowManager.cpp')
-rw-r--r-- | WindowServer/WSWindowManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WindowServer/WSWindowManager.cpp b/WindowServer/WSWindowManager.cpp index d738bf8e8c..0913c09b14 100644 --- a/WindowServer/WSWindowManager.cpp +++ b/WindowServer/WSWindowManager.cpp @@ -231,7 +231,9 @@ WSWindowManager::WSWindowManager() } return; } +#ifdef DEBUG_MENUS dbgprintf("WSMenu 1 item activated: '%s'\n", item.text().characters()); +#endif }; } @@ -340,7 +342,9 @@ void WSWindowManager::set_current_menubar(WSMenuBar* menubar) m_current_menubar = menubar->make_weak_ptr(); else m_current_menubar = nullptr; +#ifdef DEBUG_MENUS dbgprintf("[WM] Current menubar is now %p\n", menubar); +#endif Point next_menu_location { menubar_menu_margin() / 2, 0 }; for_each_active_menubar_menu([&] (WSMenu& menu) { int text_width = font().width(menu.name()); |