mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +00:00
WindowServer: Move the CPU monitor thingy to its own class.
This commit is contained in:
parent
f1b58d8d8c
commit
c2093ad994
6 changed files with 106 additions and 83 deletions
|
@ -15,7 +15,7 @@
|
|||
#include <WindowServer/WSWindow.h>
|
||||
#include <WindowServer/WSCursor.h>
|
||||
#include <WindowServer/WSMessage.h>
|
||||
#include <AK/CircularQueue.h>
|
||||
#include <WindowServer/WSCPUMonitor.h>
|
||||
|
||||
class WSAPIClientRequest;
|
||||
class WSScreen;
|
||||
|
@ -216,11 +216,11 @@ private:
|
|||
|
||||
WSWindowSwitcher m_switcher;
|
||||
|
||||
CircularQueue<float, 30> m_cpu_history;
|
||||
|
||||
String m_username;
|
||||
WeakPtr<WSButton> m_cursor_tracking_button;
|
||||
WeakPtr<WSButton> m_hovered_button;
|
||||
|
||||
WSCPUMonitor m_cpu_monitor;
|
||||
};
|
||||
|
||||
template<typename Callback>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue