After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748613 - Minimum width larger than on other backends
Minimum width larger than on other backends
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Backend: Wayland
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-04-29 07:06 UTC by Jonas Ådahl
Modified: 2015-12-03 15:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case reproducing the issue (327 bytes, text/plain)
2015-04-29 07:06 UTC, Jonas Ådahl
Details

Description Jonas Ådahl 2015-04-29 07:06:34 UTC
Created attachment 302540 [details]
Test case reproducing the issue

The minimum width of a window is larger when running the Wayland backend than it is when running running the X11 backend. For example by creating a window consisting of only a label, when running on X11, the window will be sized to just fit the label, while when running on Wayland it'll be much wider.

Attaching an example program where the issue reproduces. Depending on what backend is used, the minimum size will be different. It is not possible to resize the window in Wayland to the same size as is the default on X11.
Comment 1 Carlos Garnacho 2015-05-13 12:08:39 UTC
As far as I could see, this is more a client-side vs wm decorations, mutter fully ellipsizes the title, whereas gtk+'s headerbar label has a larger minimal size. I guess it would be nice to be consistent there, although I guess there won't be many places where the minimal width of the headerbar is larger than the content's.

I saw some pixman warnings though on csd when running the testcase, both on wayland and with GTK_CSD=1 on x11.

(gdb) 
  • #0 _pixman_log_error
    from /lib64/libpixman-1.so.0
  • #1 pixman_region32_init_rect
    from /lib64/libpixman-1.so.0
  • #2 cairo_region_create_rectangle
    from /lib64/libcairo.so.2
  • #3 recompute_visible_regions_internal
    at gdkwindow.c line 930
  • #4 recompute_visible_regions
    at gdkwindow.c line 1031
  • #5 set_viewable
    at gdkwindow.c line 4849
  • #6 set_viewable
    at gdkwindow.c line 4857
  • #7 _gdk_window_update_viewable
    at gdkwindow.c line 4914
  • #8 _gdk_set_window_state
    at gdkevents.c line 2125
  • #9 gdk_synthesize_window_state
    at gdkevents.c line 2152
  • #10 gdk_window_show_internal
    at gdkwindow.c line 4941
  • #11 gtk_window_map
    at gtkwindow.c line 6120
  • #12 _g_closure_invoke_va
    at gclosure.c line 831
  • #13 g_signal_emit_valist
    at gsignal.c line 3214
  • #14 g_signal_emit
    at gsignal.c line 3361
  • #15 gtk_widget_map
    at gtkwidget.c line 5068
  • #16 gtk_window_show
    at gtkwindow.c line 5972
  • #17 g_closure_invoke
    at gclosure.c line 768
  • #18 signal_emit_unlocked_R
    at gsignal.c line 3479
  • #19 g_signal_emit_valist
    at gsignal.c line 3305
  • #20 g_signal_emit
    at gsignal.c line 3361
  • #21 gtk_widget_show
    at gtkwidget.c line 4874
  • #22 main
  • #3 recompute_visible_regions_internal
    at gdkwindow.c line 930
$1 = {x = 46, y = 44, width = -11, height = 10}
(gdb)
Comment 2 Matthias Clasen 2015-12-03 15:51:48 UTC
I'm going to declare this notabug - just a difference between ssd and csd.