Skip to content

Commit bdc426b

Browse files
authored
feat: setTitleBarStyle() restores window frame on Linux (#323)
1 parent 8faa5c0 commit bdc426b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

linux/window_manager_plugin.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,12 @@ static FlMethodResponse* set_title_bar_style(WindowManagerPlugin* self,
498498
}
499499
}
500500

501+
if (normal) {
502+
// Undo set_as_frameless, so that when the title bar is shown
503+
// again the window frame is also restored.
504+
gtk_window_set_decorated(get_window(self), true);
505+
}
506+
501507
g_free(self->title_bar_style_);
502508
self->title_bar_style_ = g_strdup(title_bar_style);
503509

0 commit comments

Comments
 (0)