summaryrefslogtreecommitdiff
path: root/libdecor/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-29 10:28:27 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-10-29 10:28:27 +0100
commitc0e44107767ea366053ef6391d8574a5f6ab6a00 (patch)
treee18e2332389f4cf731f38631ec3b5b1b7f1fb145 /libdecor/src
parent2dc7ae8edbf9ac49116e9148abd23e585ab9d913 (diff)
Update libdecor to commit c6c780c1 dated 2023-10-10
Diffstat (limited to 'libdecor/src')
-rw-r--r--libdecor/src/plugins/gtk/libdecor-gtk.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/libdecor/src/plugins/gtk/libdecor-gtk.c b/libdecor/src/plugins/gtk/libdecor-gtk.c
index bc8290f14..c510bc595 100644
--- a/libdecor/src/plugins/gtk/libdecor-gtk.c
+++ b/libdecor/src/plugins/gtk/libdecor-gtk.c
@@ -2548,15 +2548,12 @@ init_wl_seat(struct libdecor_plugin_gtk *plugin_gtk,
struct seat *seat;
if (version < 3) {
- char *err_msg;
- asprintf(&err_msg,
- "%s version 3 required but only version %i is available\n",
- wl_seat_interface.name, version);
libdecor_notify_plugin_error(
plugin_gtk->context,
LIBDECOR_ERROR_COMPOSITOR_INCOMPATIBLE,
- err_msg);
- free(err_msg);
+ "%s version 3 required but only version %i is available\n",
+ wl_seat_interface.name,
+ version);
}
seat = zalloc(sizeof *seat);
@@ -2640,15 +2637,12 @@ init_wl_output(struct libdecor_plugin_gtk *plugin_gtk,
struct output *output;
if (version < 2) {
- char *err_msg;
- asprintf(&err_msg,
- "%s version 2 required but only version %i is available\n",
- wl_output_interface.name, version);
libdecor_notify_plugin_error(
plugin_gtk->context,
LIBDECOR_ERROR_COMPOSITOR_INCOMPATIBLE,
- err_msg);
- free(err_msg);
+ "%s version 2 required but only version %i is available\n",
+ wl_output_interface.name,
+ version);
}
output = zalloc(sizeof *output);
@@ -2814,6 +2808,8 @@ libdecor_plugin_new(struct libdecor *context)
/* setup GTK context */
gdk_set_allowed_backends("wayland");
+ gtk_disable_setlocale();
+
if (!gtk_init_check(NULL, NULL)) {
libdecor_notify_plugin_error(
plugin_gtk->context,