1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:27:45 +00:00

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.
This commit is contained in:
Andreas Kling 2019-08-15 15:19:54 +02:00
parent 14888bd992
commit d92ba85689

View file

@ -151,7 +151,6 @@ int main(int argc, char** argv)
RefPtr<CConfigFile> 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<GMenuBar>();