Skip to content

Commit 85c1f74

Browse files
authored
Linux: avoid removing shadows if no title is set (#297)
1 parent 4e1fb1f commit 85c1f74

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

linux/window_manager_plugin.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,10 @@ static FlMethodResponse* set_title_bar_style(WindowManagerPlugin* self,
492492
if (header_bar != nullptr) {
493493
gtk_widget_set_visible(header_bar, normal);
494494
} else {
495-
gtk_window_set_decorated(get_window(self), normal);
495+
const gchar* title = gtk_window_get_title(get_window(self));
496+
if (title != nullptr) {
497+
gtk_window_set_decorated(get_window(self), normal);
498+
}
496499
}
497500

498501
g_free(self->title_bar_style_);

0 commit comments

Comments
 (0)