summaryrefslogtreecommitdiff
path: root/LibGUI/GWindow.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-21 00:21:23 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-21 00:21:23 +0100
commit6084cd0c56f9d1949b8bb07db5729d2a0108d5a4 (patch)
tree63aa1fb2ff50cc5c132c6be67b671e316ca05bf2 /LibGUI/GWindow.cpp
parentfd575055c2215ce2ce42efaa82be53a94c7b3932 (diff)
downloadserenity-6084cd0c56f9d1949b8bb07db5729d2a0108d5a4.zip
Add concept of size increments to windowing system.
Use this to implement incremental resizing for Terminal so that we only ever resize to fit a perfect number of rows and columns. This is very nice. :^)
Diffstat (limited to 'LibGUI/GWindow.cpp')
-rw-r--r--LibGUI/GWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp
index f7b9bf000e..75bfc71ccb 100644
--- a/LibGUI/GWindow.cpp
+++ b/LibGUI/GWindow.cpp
@@ -61,6 +61,8 @@ void GWindow::show()
request.window.rect = m_rect_when_windowless;
request.window.has_alpha_channel = m_has_alpha_channel;
request.window.opacity = m_opacity_when_windowless;
+ request.window.size_increment = m_size_increment;
+ request.window.base_size = m_base_size;
ASSERT(m_title_when_windowless.length() < sizeof(request.text));
strcpy(request.text, m_title_when_windowless.characters());
request.text_length = m_title_when_windowless.length();