From d92ba856894a4b8622d9deb9c8b4c8038e24eb2d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 15 Aug 2019 15:19:54 +0200 Subject: [PATCH] Terminal: Mark window as alpha-less when starting up with 100% opacity WindowServer was led to believe that the Terminal window had an alpha channel that had to be respected by the compositor. This caused us to always consider it as non-opaque when culling dirty rects in compose. --- Applications/Terminal/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index 689dfb5c30..64c3430e16 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -151,7 +151,6 @@ int main(int argc, char** argv) RefPtr config = CConfigFile::get_for_app("Terminal"); auto* terminal = new TerminalWidget(ptm_fd, config); - window->set_has_alpha_channel(true); window->set_main_widget(terminal); window->move_to(300, 300); terminal->apply_size_increments_to_window(*window); @@ -163,6 +162,7 @@ int main(int argc, char** argv) auto new_opacity = config->read_num_entry("Window", "Opacity", 255); terminal->set_opacity(new_opacity); + window->set_has_alpha_channel(new_opacity < 255); auto menubar = make();