summaryrefslogtreecommitdiff
path: root/applications/goldman/source/socket.cpp
diff options
context:
space:
mode:
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;