diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-04-06 11:39:50 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-04-06 11:39:50 +0200 |
| commit | 3be89234b0f53b4ee9710be1c6a28c8199d98f0c (patch) | |
| tree | ee297a32f7af65b84f29fd1d2e96b6b288668c4f /libdecor/src | |
| parent | 8bd67f40daa0777de3a2ee150164f0c4a9f44efc (diff) | |
Remove crashes that occur in SSD mode.
Diffstat (limited to 'libdecor/src')
| -rw-r--r-- | libdecor/src/plugins/gtk/libdecor-gtk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdecor/src/plugins/gtk/libdecor-gtk.c b/libdecor/src/plugins/gtk/libdecor-gtk.c index b1d0500a3..928a18a0d 100644 --- a/libdecor/src/plugins/gtk/libdecor-gtk.c +++ b/libdecor/src/plugins/gtk/libdecor-gtk.c @@ -675,7 +675,7 @@ libdecor_plugin_gtk_frame_free(struct libdecor_plugin *plugin, (struct libdecor_frame_gtk *) frame; #if APPLY_FLTK_CHANGES - if (GTK_IS_WIDGET(frame_gtk->header)) + if (!frame_gtk->header) return; /* happens with SSD */ #endif gtk_widget_destroy(frame_gtk->header); #if APPLY_FLTK_CHANGES @@ -1595,6 +1595,9 @@ libdecor_plugin_gtk_frame_property_changed(struct libdecor_plugin *plugin, { struct libdecor_frame_gtk *frame_gtk = (struct libdecor_frame_gtk *) frame; +#if APPLY_FLTK_CHANGES + if (!frame_gtk->header) return; /* happens with SSD */ +#endif bool redraw_needed = false; const char *new_title; |
