-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Create a layer shell window simply with this code:
GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_size_request (window, 400, 40);
gtk_layer_init_for_window (GTK_WINDOW (window));
gtk_layer_set_monitor (GTK_WINDOW (window), gdk_display_get_monitor (gdk_display_get_default (), 0));
gtk_window_present (GTK_WINDOW (window));Then change tty with Alt-Fn and return: the window has disappeared, and you can verify that the GtkWidget::destroy signal has been emitted by connecting a signal handler to it.
Setting a default size is necessary for me for the window to show up, in general: I don't know if the problem is new.
There are also cases where assigning a monitor to the window is not necessary for it to be destroyed, but perhaps only in multi-monitor mode (with possibly several tty changes).
Versions:
- gtk-layer-shell 0.9.2 or
0.9.2+4+gac95e22 - wayfire 0.10.0
- labwc 0.9.0
Metadata
Metadata
Assignees
Labels
No labels