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:
parent
14888bd992
commit
d92ba85689
1 changed files with 1 additions and 1 deletions
|
@ -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>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue