mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 00:09:01 +00:00
Taskbar: Start working on a taskbar app.
I originally thought I would do this inside WindowServer, but let's try to make it as a standalone app that communicates with WindowServer instead. That will allow us to use LibGUI. :^)
This commit is contained in:
parent
318db1e48e
commit
a22774ee3f
Notes:
sideshowbarker
2024-07-19 14:50:04 +09:00
Author: https://github.com/awesomekling
Commit: a22774ee3f
31 changed files with 577 additions and 18 deletions
|
@ -64,6 +64,7 @@ void GWindow::show()
|
|||
request.window.opacity = m_opacity_when_windowless;
|
||||
request.window.size_increment = m_size_increment;
|
||||
request.window.base_size = m_base_size;
|
||||
request.window.type = (WSAPI_WindowType)m_window_type;
|
||||
ASSERT(m_title_when_windowless.length() < (ssize_t)sizeof(request.text));
|
||||
strcpy(request.text, m_title_when_windowless.characters());
|
||||
request.text_length = m_title_when_windowless.length();
|
||||
|
@ -140,6 +141,11 @@ void GWindow::set_rect(const Rect& a_rect)
|
|||
GEventLoop::current().post_message_to_server(request);
|
||||
}
|
||||
|
||||
void GWindow::set_window_type(GWindowType window_type)
|
||||
{
|
||||
m_window_type = window_type;
|
||||
}
|
||||
|
||||
void GWindow::set_override_cursor(GStandardCursor cursor)
|
||||
{
|
||||
if (!m_window_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue