}
}
-static const char *
-get_default_title (void)
-{
- const char *title;
-
- title = g_get_application_name ();
- if (!title)
- title = g_get_prgname ();
- if (!title)
- title = "";
-
- return title;
-}
-
static gboolean
is_realized_shell_surface (GdkWaylandSurface *impl)
{
g_warn_if_fail (parent == NULL);
surface = g_object_new (GDK_TYPE_WAYLAND_TOPLEVEL,
"display", display,
- "title", get_default_title (),
NULL);
break;
case GDK_SURFACE_POPUP:
wl_surface_commit (wayland_surface->display_server.wl_surface);
}
+static const char *
+get_default_title (void)
+{
+ const char *title;
+
+ title = g_get_application_name ();
+ if (!title)
+ title = g_get_prgname ();
+ if (!title)
+ title = "";
+
+ return title;
+}
+
static void
gdk_wayland_toplevel_init (GdkWaylandToplevel *toplevel)
{
toplevel->shortcuts_inhibitors = g_hash_table_new (NULL, NULL);
toplevel->saved_width = -1;
toplevel->saved_height = -1;
+
+ toplevel->title = g_strdup (get_default_title ());
}
static void