1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:08:12 +00:00

WindowServer: Put some WindowManager debug spam inside #ifdefs

This commit is contained in:
Andreas Kling 2020-03-01 13:58:17 +01:00
parent c3c8eae25a
commit 042baa4e8d

View file

@ -52,6 +52,7 @@
#include <time.h>
#include <unistd.h>
//#define WINDOWMANAGER_DEBUG
//#define RESIZE_DEBUG
//#define MOVE_DEBUG
//#define DOUBLECLICK_DEBUG
@ -255,7 +256,9 @@ void WindowManager::tell_wm_listener_about_window_icon(Window& listener, Window&
return;
if (window.icon().shbuf_id() == -1)
return;
#ifdef WINDOWMANAGER_DEBUG
dbg() << "WindowServer: Sharing icon buffer " << window.icon().shbuf_id() << " with PID " << listener.client()->client_pid();
#endif
if (shbuf_allow_pid(window.icon().shbuf_id(), listener.client()->client_pid()) < 0) {
ASSERT_NOT_REACHED();
}
@ -290,7 +293,9 @@ void WindowManager::notify_title_changed(Window& window)
{
if (window.type() != WindowType::Normal)
return;
#ifdef WINDOWMANAGER_DEBUG
dbg() << "[WM] Window{" << &window << "} title set to \"" << window.title() << '"';
#endif
invalidate(window.frame().rect());
if (m_switcher.is_visible())
m_switcher.refresh();