Commit Graph

2171 Commits

Author SHA1 Message Date
a770b67b08
wind: Show memory usage in debug output
Some checks failed
continuous-integration/drone/pr Build is failing
2023-08-21 14:06:58 +02:00
e0fb90d97e
wind: Handle ftruncate() and mmap() errors properly 2023-08-21 14:06:58 +02:00
ce9d0f5856
wind: Fix client references being out-of-date in windows when disconnecting other clients
Classic "keeping a pointer to an element inside a vector after the vector is updated" bug, ah yes.
2023-08-21 14:06:58 +02:00
13a0d4860d
taskbar: Wait for terminated child windows 2023-08-21 14:06:57 +02:00
59915a5cd6
wind: Add debug keybind 2023-08-21 14:06:57 +02:00
f3fbfcf8fb
wind+libos+libui: Handle interrupted reads properly 2023-08-21 14:06:57 +02:00
f2e0c87dfc
base: Actually add the start icon to source control 2023-08-21 14:06:57 +02:00
ff1135c4b6
libui: Add Buttons 2023-08-21 14:06:57 +02:00
29d9620540
libui: Handle other mouse events 2023-08-21 14:06:57 +02:00
265c22ddaa
libui: Add aligned items using Containers, ImageWidget 2023-08-21 14:06:56 +02:00
75fb5dd98e
libui: Add VerticalLayout 2023-08-21 14:06:56 +02:00
64b93f6664
wind+libui+taskbar: Add GetScreenRect IPC, non-decorated windows, taskbar 2023-08-21 14:06:56 +02:00
105cd99fc9
libui: Actually fill window backgrounds with the correct color 2023-08-21 14:06:56 +02:00
c54d9d6bf8
libui: Add basic widget and layout system =D 2023-08-21 14:06:56 +02:00
23edc6e12a
ui+wind: Send mouse move events through IPC 2023-08-21 14:06:56 +02:00
f1d10af5b2
wind+libui: Add protocol for window close requests 2023-08-21 14:06:55 +02:00
89c11cdffe
libos+libui+wind: Use uppercase for static struct IDs to avoid confusion with fields 2023-08-21 14:06:55 +02:00
6cdc9ea40a
libui+gclient: Add basic OOP wrappers around the IPC protocol 2023-08-21 14:06:55 +02:00
ae4b383a16
wind+gclient: Add SetWindowTitle and support shm buffers 2023-08-21 14:06:55 +02:00
031b57b97a
gclient: Create two example windows 2023-08-21 14:06:55 +02:00
e37b2e7b07
wind: Handle CreateWindow IPC messages 2023-08-21 14:06:55 +02:00
78fb55112e
libui: Add CreateWindow IPC message definitions 2023-08-21 14:06:54 +02:00
311ca222d3
libos: Add basic IPC message framework 2023-08-21 14:06:54 +02:00
9d10e16760
kernel: Fix poll syscall 2023-08-21 14:06:54 +02:00
6e78cdc356
wind: Monitor data on client connections 2023-08-21 14:06:54 +02:00
20488d8413
kernel: Add POLLHUP and store it when a polled socket's peer disconnects 2023-08-21 14:06:54 +02:00
c84e4d661e
libui: Add copyright/author text 2023-08-21 14:06:54 +02:00
62b8455d52
libos: Add copyright/author comments to LocalServer and LocalClient 2023-08-21 14:06:53 +02:00
71598efb45
wind: Use init --user and pledge() 2023-08-21 14:06:53 +02:00
f60d11fc42
Update .gitignore 2023-08-21 14:06:53 +02:00
e188a61499
libos: Remove some shared pointers and change them to owned/live on the stack 2023-08-21 14:06:53 +02:00
34f54a2a16
wind: Spawn a new client process after startup
Also, create the socket after dropping privileges.
2023-08-21 14:06:52 +02:00
66a40d0951
apps: Add gclient 2023-08-21 14:06:52 +02:00
ae02a3edb0
libos: Add os::LocalClient 2023-08-21 14:06:52 +02:00
6316156f83
libui: Change 'into' to 'onto' 2023-08-21 14:06:52 +02:00
d75bce3b73
libui: Document ui::Font 2023-08-21 14:06:52 +02:00
265db4b081
libui+wind: Move some static variables inside functions 2023-08-21 14:06:52 +02:00
7fddffdbff
wind: Generate random windows on keypresses 2023-08-21 14:06:51 +02:00
4e9aea19ab
wind: Make sure windows have a minimum size to fit the titlebar 2023-08-21 14:06:51 +02:00
70e2d627bc
libui: Properly cut off the last drawn character if necessary 2023-08-21 14:06:51 +02:00
9db54a4d83
libui: Add Rect::contains(Rect) 2023-08-21 14:06:51 +02:00
3c3e5ece3d
libui: Render font characters properly with no spacing, matching the width calculations 2023-08-21 14:06:51 +02:00
707516276d
wind: Render an actual TGA mouse cursor 2023-08-21 14:06:51 +02:00
44206b1305
wind: Add a close button to windows using a TGA icon 2023-08-21 14:06:51 +02:00
357aefed54
libui: Add support for TGA image loading 2023-08-21 14:06:50 +02:00
94de39ca3d
libui: Add an interface to fill a Canvas with an array of pixels 2023-08-21 14:06:50 +02:00
382e2d7492
wind: Add window titlebars using ui::Font 2023-08-21 14:06:50 +02:00
aff08a2812
libui: Add PSF font loading and rendering 2023-08-21 14:06:50 +02:00
ea1c3a28ae
libui: Add Color::GRAY 2023-08-21 14:06:50 +02:00
1f2c8da478
libui: Rename Rect::absolute to normalized and add a new absolute function 2023-08-21 14:06:50 +02:00