summaryrefslogtreecommitdiff
path: root/libdecor/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-12-29 15:26:28 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-12-29 15:26:28 +0100
commit83d9a2c63dc168e1e503900ef6c4a1680f16fc54 (patch)
treef396a796e9e77bfdd0d4c76b69a5727ff2445a56 /libdecor/src
parent78cf29ba29aede2f0463e1747dc728787428d543 (diff)
libdecor: update from upstream (3f3e5e1d) as of 29-dec-2022
Diffstat (limited to 'libdecor/src')
-rw-r--r--libdecor/src/plugins/cairo/libdecor-cairo.c2
-rw-r--r--libdecor/src/plugins/gtk/libdecor-gtk.c11
2 files changed, 7 insertions, 6 deletions
diff --git a/libdecor/src/plugins/cairo/libdecor-cairo.c b/libdecor/src/plugins/cairo/libdecor-cairo.c
index 0cc0ce0dd..b105917d2 100644
--- a/libdecor/src/plugins/cairo/libdecor-cairo.c
+++ b/libdecor/src/plugins/cairo/libdecor-cairo.c
@@ -2712,7 +2712,7 @@ libdecor_plugin_new(struct libdecor *context)
plugin_cairo->font = pango_font_description_new();
pango_font_description_set_family(plugin_cairo->font, "sans");
pango_font_description_set_weight(plugin_cairo->font, PANGO_WEIGHT_BOLD);
- pango_font_description_set_size(plugin_cairo->font, SYM_DIM * PANGO_SCALE);
+ pango_font_description_set_absolute_size(plugin_cairo->font, SYM_DIM * PANGO_SCALE);
wl_display = libdecor_get_wl_display(context);
plugin_cairo->wl_registry = wl_display_get_registry(wl_display);
diff --git a/libdecor/src/plugins/gtk/libdecor-gtk.c b/libdecor/src/plugins/gtk/libdecor-gtk.c
index 661e526d0..228161e43 100644
--- a/libdecor/src/plugins/gtk/libdecor-gtk.c
+++ b/libdecor/src/plugins/gtk/libdecor-gtk.c
@@ -1727,17 +1727,18 @@ libdecor_plugin_gtk_frame_get_border_size(struct libdecor_plugin *plugin,
if (bottom)
*bottom = 0;
if (top) {
- /* Redraw decoration to ensure size will be up-to-date */
- draw_decoration((struct libdecor_frame_gtk *) frame);
-
GtkWidget *header = ((struct libdecor_frame_gtk *)frame)->header;
enum decoration_type type = window_state_to_decoration_type(window_state);
/* avoid warnings after decoration has been turned off */
- if (GTK_IS_WIDGET(header) && (type != DECORATION_TYPE_NONE))
+ if (GTK_IS_WIDGET(header) && (type != DECORATION_TYPE_NONE)) {
+ /* Redraw title bar to ensure size will be up-to-date */
+ if (configuration && type == DECORATION_TYPE_TITLE_ONLY)
+ draw_title_bar((struct libdecor_frame_gtk *) frame);
*top = gtk_widget_get_allocated_height(header);
- else
+ } else {
*top = 0;
+ }
}
return true;