mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 06:14:28 +08:00
Libdecor: update to upstream commit 25f29fef 3 dec 2022
This commit is contained in:
@@ -1397,8 +1397,11 @@ check_symbol_conflicts(const struct libdecor_plugin_description *plugin_descript
|
|||||||
while (*symbol) {
|
while (*symbol) {
|
||||||
dlerror();
|
dlerror();
|
||||||
dlsym (RTLD_DEFAULT, *symbol);
|
dlsym (RTLD_DEFAULT, *symbol);
|
||||||
if (!dlerror())
|
if (!dlerror()) {
|
||||||
|
fprintf(stderr, "Plugin \"%s\" uses conflicting symbol \"%s\".\n",
|
||||||
|
plugin_description->description, *symbol);
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
symbol++;
|
symbol++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -659,6 +659,7 @@ libdecor_plugin_gtk_frame_free(struct libdecor_plugin *plugin,
|
|||||||
/* when in SSD mode, frame_gtk->header is not a proper GTK widget */
|
/* when in SSD mode, frame_gtk->header is not a proper GTK widget */
|
||||||
if (!GTK_IS_WIDGET(frame_gtk->header)) return;
|
if (!GTK_IS_WIDGET(frame_gtk->header)) return;
|
||||||
gtk_widget_destroy(frame_gtk->header);
|
gtk_widget_destroy(frame_gtk->header);
|
||||||
|
if (!GTK_IS_WIDGET(frame_gtk->window)) return;
|
||||||
gtk_widget_destroy(frame_gtk->window);
|
gtk_widget_destroy(frame_gtk->window);
|
||||||
|
|
||||||
free_border_component(&frame_gtk->headerbar);
|
free_border_component(&frame_gtk->headerbar);
|
||||||
|
|||||||
Reference in New Issue
Block a user