WindowServer: Show PID and window ID in title bars for now.

This is useful for debugging since I'm often wondering which process some
window belongs to (and what the window ID is.)
This commit is contained in:
Andreas Kling 2019-01-21 02:42:29 +01:00
commit 291922b1af
Notes: sideshowbarker 2024-07-19 15:59:31 +09:00
5 changed files with 13 additions and 1 deletions

View file

@ -38,6 +38,8 @@ public:
GraphicsBitmap* backing() { return m_backing.ptr(); }
pid_t pid() const { return m_pid; }
// For InlineLinkedList.
// FIXME: Maybe make a ListHashSet and then WSWindowManager can just use that.
WSWindow* m_next { nullptr };
@ -51,5 +53,6 @@ private:
RetainPtr<GraphicsBitmap> m_backing;
Process& m_process;
int m_window_id { -1 };
pid_t m_pid { -1 };
};