Commit Graph

2229 Commits

Author SHA1 Message Date
d892e431b3
libui: Zero-initialize counter variables in Layout 2023-09-11 07:31:31 +02:00
26623f8a0d
wind: Move more fallible operations before window creation
All checks were successful
continuous-integration/drone/pr Build is passing
2023-09-10 18:55:47 +02:00
0cc2b64cee
wind: Make sure stdin is always a TTY 2023-09-10 18:55:46 +02:00
1a79a3beda
libui+wind+libos: Move shared memory handling code to os::SharedMemory 2023-09-10 18:55:46 +02:00
b415e9a81a
libui: Add default handlers for events in Widget 2023-09-10 18:55:46 +02:00
77da94339d
libui: Propagate Container events only if they are in the child widget's rect 2023-09-10 18:55:46 +02:00
072793ce43
libui+wind: Handle mouse leave events when the mouse leaves a window 2023-09-10 18:55:46 +02:00
ffc7274272
wind: Stop using the removed 'signal' pledge 2023-09-10 18:55:46 +02:00
2fbf75a8b5
libui: Install the built library into the system root 2023-09-10 18:55:46 +02:00
f79515ed00
wind: Show memory usage in debug output 2023-09-10 18:55:45 +02:00
7d4d797d01
wind: Handle ftruncate() and mmap() errors properly 2023-09-10 18:55:45 +02:00
c7c7d7b751
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-09-10 18:55:45 +02:00
fd77ec4fab
taskbar: Wait for terminated child windows 2023-09-10 18:55:45 +02:00
a3751d9ce5
wind: Add debug keybind 2023-09-10 18:55:45 +02:00
869bbbe122
wind+libos+libui: Handle interrupted reads properly 2023-09-10 18:55:45 +02:00
17dde92c7b
base: Actually add the start icon to source control 2023-09-10 18:55:45 +02:00
f60ab19ed1
libui: Add Buttons 2023-09-10 18:55:44 +02:00
364556911f
libui: Handle other mouse events 2023-09-10 18:55:44 +02:00
d26ef849d9
libui: Add aligned items using Containers, ImageWidget 2023-09-10 18:55:44 +02:00
03cdd125d1
libui: Add VerticalLayout 2023-09-10 18:55:44 +02:00
815c2321a1
wind+libui+taskbar: Add GetScreenRect IPC, non-decorated windows, taskbar 2023-09-10 18:55:44 +02:00
a044b14b75
libui: Actually fill window backgrounds with the correct color 2023-09-10 18:55:44 +02:00
6701530f7f
libui: Add basic widget and layout system =D 2023-09-10 18:55:44 +02:00
0000bdaac5
ui+wind: Send mouse move events through IPC 2023-09-10 18:55:44 +02:00
b870cd1f8b
wind+libui: Add protocol for window close requests 2023-09-10 18:55:44 +02:00
21da3c7bda
libos+libui+wind: Use uppercase for static struct IDs to avoid confusion with fields 2023-09-10 18:55:43 +02:00
113fce5792
libui+gclient: Add basic OOP wrappers around the IPC protocol 2023-09-10 18:55:43 +02:00
ec61bdbfc5
wind+gclient: Add SetWindowTitle and support shm buffers 2023-09-10 18:55:43 +02:00
b9967cd0a7
gclient: Create two example windows 2023-09-10 18:55:43 +02:00
af78427228
wind: Handle CreateWindow IPC messages 2023-09-10 18:55:43 +02:00
89f156ad64
libui: Add CreateWindow IPC message definitions 2023-09-10 18:55:43 +02:00
8536752646
libos: Add basic IPC message framework 2023-09-10 18:55:43 +02:00
3359a8be90
kernel: Fix poll syscall 2023-09-10 18:55:43 +02:00
f4cd33a94a
wind: Monitor data on client connections 2023-09-10 18:55:42 +02:00
8966690b34
kernel: Add POLLHUP and store it when a polled socket's peer disconnects 2023-09-10 18:55:42 +02:00
841de6efcb
libui: Add copyright/author text 2023-09-10 18:55:42 +02:00
39d6128095
libos: Add copyright/author comments to LocalServer and LocalClient 2023-09-10 18:55:42 +02:00
faaea22d11
wind: Use init --user and pledge() 2023-09-10 18:55:42 +02:00
fe5936e507
Update .gitignore 2023-09-10 18:55:42 +02:00
7570724525
libos: Remove some shared pointers and change them to owned/live on the stack 2023-09-10 18:55:42 +02:00
e21b7d645d
wind: Spawn a new client process after startup
Also, create the socket after dropping privileges.
2023-09-10 18:55:42 +02:00
3750c1da57
apps: Add gclient 2023-09-10 18:55:41 +02:00
ca8306bc35
libos: Add os::LocalClient 2023-09-10 18:55:41 +02:00
a5b3b10a98
libui: Change 'into' to 'onto' 2023-09-10 18:55:41 +02:00
20f6ef04d3
libui: Document ui::Font 2023-09-10 18:55:41 +02:00
37332b2a67
libui+wind: Move some static variables inside functions 2023-09-10 18:55:41 +02:00
01cf9735eb
wind: Generate random windows on keypresses 2023-09-10 18:55:41 +02:00
fc35c32671
wind: Make sure windows have a minimum size to fit the titlebar 2023-09-10 18:55:41 +02:00
889588599b
libui: Properly cut off the last drawn character if necessary 2023-09-10 18:55:41 +02:00
47ea92536a
libui: Add Rect::contains(Rect) 2023-09-10 18:55:40 +02:00