gtk: Persist panel state
Creating and destroying the panel as needed causes a resource leak somewhere in the deeper layers of the stack. This is a workaround. See https://gitlab.gnome.org/World/Phosh/squeekboard/-/issues/343
This commit is contained in:
@ -13,8 +13,10 @@ struct panel_manager {
|
||||
struct squeek_popover *popover; // shared reference
|
||||
struct submission *submission; // unowned
|
||||
|
||||
// both memoized - doesn't have to be, but bugs happen:
|
||||
// https://gitlab.gnome.org/World/Phosh/squeekboard/-/issues/343
|
||||
PhoshLayerSurface *window;
|
||||
GtkWidget *widget; // nullable
|
||||
GtkWidget *widget;
|
||||
|
||||
// Those should be held in Rust
|
||||
struct wl_output *current_output;
|
||||
|
||||
Reference in New Issue
Block a user