summaryrefslogtreecommitdiff
path: root/Applications/Terminal/Terminal.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-20 21:59:13 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-20 22:08:14 +0100
commitfa02d2a39b9dc403156f2c61987f0b5c7698fc71 (patch)
treebf658ffdc3d4d5b60d5b33fc0848622ff1c9ca00 /Applications/Terminal/Terminal.cpp
parente0b81ee4c9630ab343b72e4d946f620473b56b7b (diff)
downloadserenity-fa02d2a39b9dc403156f2c61987f0b5c7698fc71.zip
Rework the rendering model so that clients instantiate backing stores.
This makes interactive resizing work a lot better, althought it's still not perfect. There are still glitches and unpleasant flashes of zeroed memory.
Diffstat (limited to 'Applications/Terminal/Terminal.cpp')
-rw-r--r--Applications/Terminal/Terminal.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Applications/Terminal/Terminal.cpp b/Applications/Terminal/Terminal.cpp
index e9f63cf551..52130340a1 100644
--- a/Applications/Terminal/Terminal.cpp
+++ b/Applications/Terminal/Terminal.cpp
@@ -760,3 +760,9 @@ void Terminal::force_repaint()
m_need_full_flush = true;
update();
}
+
+void Terminal::resize_event(GResizeEvent&)
+{
+ m_needs_background_fill = true;
+ force_repaint();
+}