Skip to content

Commit

Permalink
Linux: avoid removing shadows if no title is set (leanflutter#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi authored and obiwanzenobi committed May 25, 2023
1 parent 6a24388 commit a91a9ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion linux/window_manager_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,10 @@ static FlMethodResponse* set_title_bar_style(WindowManagerPlugin* self,
if (header_bar != nullptr) {
gtk_widget_set_visible(header_bar, normal);
} else {
gtk_window_set_decorated(get_window(self), normal);
const gchar* title = gtk_window_get_title(get_window(self));
if (title != nullptr) {
gtk_window_set_decorated(get_window(self), normal);
}
}

g_free(self->title_bar_style_);
Expand Down

0 comments on commit a91a9ec

Please sign in to comment.