mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
WindowServer: Put some WindowManager debug spam inside #ifdefs
This commit is contained in:
parent
c3c8eae25a
commit
042baa4e8d
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
//#define WINDOWMANAGER_DEBUG
|
||||||
//#define RESIZE_DEBUG
|
//#define RESIZE_DEBUG
|
||||||
//#define MOVE_DEBUG
|
//#define MOVE_DEBUG
|
||||||
//#define DOUBLECLICK_DEBUG
|
//#define DOUBLECLICK_DEBUG
|
||||||
|
@ -255,7 +256,9 @@ void WindowManager::tell_wm_listener_about_window_icon(Window& listener, Window&
|
||||||
return;
|
return;
|
||||||
if (window.icon().shbuf_id() == -1)
|
if (window.icon().shbuf_id() == -1)
|
||||||
return;
|
return;
|
||||||
|
#ifdef WINDOWMANAGER_DEBUG
|
||||||
dbg() << "WindowServer: Sharing icon buffer " << window.icon().shbuf_id() << " with PID " << listener.client()->client_pid();
|
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) {
|
if (shbuf_allow_pid(window.icon().shbuf_id(), listener.client()->client_pid()) < 0) {
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
@ -290,7 +293,9 @@ void WindowManager::notify_title_changed(Window& window)
|
||||||
{
|
{
|
||||||
if (window.type() != WindowType::Normal)
|
if (window.type() != WindowType::Normal)
|
||||||
return;
|
return;
|
||||||
|
#ifdef WINDOWMANAGER_DEBUG
|
||||||
dbg() << "[WM] Window{" << &window << "} title set to \"" << window.title() << '"';
|
dbg() << "[WM] Window{" << &window << "} title set to \"" << window.title() << '"';
|
||||||
|
#endif
|
||||||
invalidate(window.frame().rect());
|
invalidate(window.frame().rect());
|
||||||
if (m_switcher.is_visible())
|
if (m_switcher.is_visible())
|
||||||
m_switcher.refresh();
|
m_switcher.refresh();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue