summaryrefslogtreecommitdiff
path: root/Applications/Terminal
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-10 14:29:47 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-10 14:29:47 +0200
commitd4818dd2dd21aa9189bb0ee87aff2660b1e22951 (patch)
tree643bb48aa5da1f24d320795d89a69cb7b072de74 /Applications/Terminal
parent30e2d62c38b30e7023269b5334c7dd101610ca7f (diff)
downloadserenity-d4818dd2dd21aa9189bb0ee87aff2660b1e22951.zip
WindowServer: Give windows a "background color" to use for missing parts.
When resizing a window, we often end up having to paint some part of it without coverage in the current backing store. This patch makes those cases look nicer by having a fallback background color for each window, passed along with the CreateWindow client message.
Diffstat (limited to 'Applications/Terminal')
-rw-r--r--Applications/Terminal/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp
index 8cdd1b9039..466a88ad11 100644
--- a/Applications/Terminal/main.cpp
+++ b/Applications/Terminal/main.cpp
@@ -88,6 +88,7 @@ int main(int argc, char** argv)
make_shell(ptm_fd);
auto* window = new GWindow;
+ window->set_background_color(Color::Black);
window->set_double_buffering_enabled(false);
window->set_should_exit_event_loop_on_close(true);