fix: linux wayland frame of subwindow exists

Signed-off-by: Kingtous <kingtous@qq.com>
This commit is contained in:
Kingtous 2022-09-05 14:00:40 +08:00
parent f385127f3b
commit 4c499ecf2e
3 changed files with 5 additions and 3 deletions

View file

@ -19,6 +19,8 @@ static void my_application_activate(GApplication* application) {
MyApplication* self = MY_APPLICATION(application);
GtkWindow* window =
GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
// we have custom window frame
gtk_window_set_decorated(window, FALSE);
// Use a header bar when running in GNOME as this is the common style used
// by applications and is the setup most users will be using (e.g. Ubuntu