Skip to content

GtkWindow destroyed when changing tty since wlroots 0.19 #209

@Tamaranch

Description

@Tamaranch

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions