1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:27:43 +00:00

Taskbar+LibGUI: More work on bringup.

This commit is contained in:
Andreas Kling 2019-04-03 21:03:12 +02:00
parent a22774ee3f
commit aa03a07e61
16 changed files with 105 additions and 250 deletions

View file

@ -2,6 +2,8 @@
#include "TaskbarWidget.h"
#include <LibGUI/GWindow.h>
#include <LibGUI/GDesktop.h>
#include <LibGUI/GEventLoop.h>
#include <WindowServer/WSAPITypes.h>
#include <stdio.h>
TaskbarWindow::TaskbarWindow()
@ -27,3 +29,13 @@ void TaskbarWindow::on_screen_rect_change(const Rect& rect)
Rect new_rect { rect.x(), rect.bottom() - taskbar_height() + 1, rect.width(), taskbar_height() };
set_rect(new_rect);
}
void TaskbarWindow::wm_event(GWMEvent& event)
{
#if 0
switch (event.type()) {
case GEvent::WM_WindowAdded:
m_window_list.append({})
}
#endif
}