diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-05 08:35:19 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-05 08:35:33 +0100 |
| commit | f66c142bbe53666047952a64d989d8300e1f9087 (patch) | |
| tree | e514dd1fce08bfe0fe85cc6388c7efbb1b1d68e5 /libdecor/src | |
| parent | 6216165dece472e16f14f8d07f7bdd86a63caad5 (diff) | |
Wayland: activate min window size to get feedback about impact on users
Diffstat (limited to 'libdecor/src')
| -rw-r--r-- | libdecor/src/plugins/cairo/libdecor-cairo.c | 2 | ||||
| -rw-r--r-- | libdecor/src/plugins/gtk/libdecor-gtk.c | 12 |
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, ¤t_min_w, ¤t_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); } |
