summaryrefslogtreecommitdiff
path: root/applications/goldman/source/socket.cpp
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-07-29 21:26:17 -0400
committerBenji Dial <benji@benjidial.net>2024-07-29 21:26:17 -0400
commitc34b9191f258ddc15c5b45c000cd0266aed9dead (patch)
tree88e66004d1514d6f22b4366fc415b467784fee63 /applications/goldman/source/socket.cpp
parente6c3a80b01ffb52079783cddd9be6d392d0f7039 (diff)
downloadhilbert-os-c34b9191f258ddc15c5b45c000cd0266aed9dead.tar.gz
window borders
Diffstat (limited to 'applications/goldman/source/socket.cpp')
-rw-r--r--applications/goldman/source/socket.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/applications/goldman/source/socket.cpp b/applications/goldman/source/socket.cpp
index 9ebd644..aa9b85e 100644
--- a/applications/goldman/source/socket.cpp
+++ b/applications/goldman/source/socket.cpp
@@ -43,12 +43,13 @@ struct socket_state {
euler::syscall::stream_result::success)
return false;
- if (packet.width > __INT_MAX__ || packet.height > __INT_MAX__)
+ if (packet. width > __INT_MAX__ - window::decorations_extra_width ||
+ packet.height > __INT_MAX__ - window::decorations_extra_height)
return false;
r->lock();
- w->contents = daguerre::image<daguerre::hilbert_color>(
- packet.width, packet.height);
+ w->set_size(packet.width, packet.height);
+ w->draw_decorations(r->is_top(w));
r->unlock();
return true;
@@ -69,6 +70,7 @@ struct socket_state {
r->lock();
w->title = std::move(title);
+ w->draw_decorations(r->is_top(w));
r->unlock();
r->dispatch_render();
return true;