summaryrefslogtreecommitdiff
path: root/libdecor/src
diff options
context:
space:
mode:
Diffstat (limited to 'libdecor/src')
-rw-r--r--libdecor/src/plugins/cairo/libdecor-cairo.c2
-rw-r--r--libdecor/src/plugins/gtk/libdecor-gtk.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/libdecor/src/plugins/cairo/libdecor-cairo.c b/libdecor/src/plugins/cairo/libdecor-cairo.c
index 6e4222863..704939b50 100644
--- a/libdecor/src/plugins/cairo/libdecor-cairo.c
+++ b/libdecor/src/plugins/cairo/libdecor-cairo.c
@@ -1007,7 +1007,7 @@ ensure_border_surfaces(struct libdecor_frame_cairo *frame_cairo)
frame_cairo->shadow.opaque = false;
ensure_component(frame_cairo, &frame_cairo->shadow);
-#if ! APPLY_FLTK_CHANGES
+#if 1 // ! APPLY_FLTK_CHANGES // activate this to get feedback about its impact
libdecor_frame_get_min_content_size(&frame_cairo->frame,
&min_width, &min_height);
libdecor_frame_set_min_content_size(&frame_cairo->frame,
diff --git a/libdecor/src/plugins/gtk/libdecor-gtk.c b/libdecor/src/plugins/gtk/libdecor-gtk.c
index d5261c153..43608baad 100644
--- a/libdecor/src/plugins/gtk/libdecor-gtk.c
+++ b/libdecor/src/plugins/gtk/libdecor-gtk.c
@@ -1406,12 +1406,12 @@ draw_title_bar(struct libdecor_frame_gtk *frame_gtk)
libdecor_frame_set_min_content_size(&frame_gtk->frame, pref_width, 1);
gtk_widget_size_allocate(frame_gtk->header, &allocation);
#else // new code for FLTK
- int min_GTK_width = 15;
- /* // Comment out to remove need for hiding (see below) warnings sent to stderr
+ //int min_GTK_width = 15;
+ // Comment out to remove need for hiding (see below) warnings sent to stderr
// just enough space not to create: Gtk-WARNING **: Negative content width ……
- min_GTK_width = 134;
+ int min_GTK_width = 134;
if (!libdecor_frame_has_capability(&frame_gtk->frame, LIBDECOR_ACTION_FULLSCREEN))
- min_GTK_width = 100; // no maximize button, window can be narrower*/
+ min_GTK_width = 100; // no maximize button, window can be narrower
int current_min_w, current_min_h;
libdecor_frame_get_min_content_size(&frame_gtk->frame, &current_min_w, &current_min_h);
bool need_change = false;
@@ -1441,12 +1441,12 @@ draw_title_bar(struct libdecor_frame_gtk *frame_gtk)
return;
}
// hack to hide "Gtk-WARNING **: Negative content width" sent to stderr
- static FILE *null_stderr = NULL;
+ /*static FILE *null_stderr = NULL;
if (!null_stderr) null_stderr = fopen("/dev/null", "w+");
FILE *old_stderr = stderr;
stderr = null_stderr;
gtk_widget_size_allocate(frame_gtk->header, &allocation); // warnings are sent here
- stderr = old_stderr;
+ stderr = old_stderr;*/
#endif // end of new code for FLTK
draw_border_component(frame_gtk, &frame_gtk->headerbar, HEADER);
}