https://bugzilla.gnome.org/show_bug.cgi?id=771561

--- Comment #5 from Carlos Garnacho <carl...@gnome.org> ---
FWIW, Some gdb debugging:

(gdb) bt
#0  gdk_wayland_window_set_geometry_hints (window=0x6fe330,
geometry=0x7fffffffcce0, geom_mask=(GDK_HINT_MIN_SIZE | GDK_HINT_BASE_SIZE |
GDK_HINT_WIN_GRAVITY)) at gdkwindow-wayland.c:2981
#1  0x00007ffff1f0f51a in gdk_window_set_geometry_hints (window=0x6fe330,
geometry=0x7fffffffcce0, geom_mask=(GDK_HINT_MIN_SIZE | GDK_HINT_BASE_SIZE |
GDK_HINT_WIN_GRAVITY))
    at gdkwindow.c:10392
#2  0x00007ffff26e334a in gtk_window_move_resize (window=0xbd43c0) at
gtkwindow.c:9691
#3  0x00007ffff26e0771 in gtk_window_check_resize (container=0xbd43c0) at
gtkwindow.c:8304
#4  0x00007ffff0c40a32 in g_cclosure_marshal_VOID__VOIDv (closure=0x741910,
return_value=0x0, instance=0xbd43c0, args=0x7fffffffd1a8,
marshal_data=0x7ffff26e0682 <gtk_window_check_resize>, 
    n_params=0, param_types=0x0) at
/home/carlos/Source/gnome/glib/gobject/gmarshal.c:905
#5  0x00007ffff0c3e05e in g_type_class_meta_marshalv (closure=0x741910,
return_value=0x0, instance=0xbd43c0, args=0x7fffffffd1a8, marshal_data=0x348,
n_params=0, param_types=0x0)
    at /home/carlos/Source/gnome/glib/gobject/gclosure.c:1024
#6  0x00007ffff0c3dc20 in _g_closure_invoke_va (closure=0x741910,
return_value=0x0, instance=0xbd43c0, args=0x7fffffffd1a8, n_params=0,
param_types=0x0)
    at /home/carlos/Source/gnome/glib/gobject/gclosure.c:867
#7  0x00007ffff0c59536 in g_signal_emit_valist (instance=0xbd43c0,
signal_id=120, detail=0, var_args=0x7fffffffd1a8) at
/home/carlos/Source/gnome/glib/gobject/gsignal.c:3300
#8  0x00007ffff0c5a6b9 in g_signal_emit (instance=0xbd43c0, signal_id=120,
detail=0) at /home/carlos/Source/gnome/glib/gobject/gsignal.c:3447
#9  0x00007ffff23ad9c2 in gtk_container_check_resize (container=0xbd43c0) at
gtkcontainer.c:2171
#10 0x00007ffff23ad5b6 in gtk_container_idle_sizer (clock=0x748220,
container=0xbd43c0) at gtkcontainer.c:2064
#11 0x00007ffff0c4099f in g_cclosure_marshal_VOID__VOID (closure=0xd02e70,
return_value=0x0, n_param_values=1, param_values=0x7fffffffd510,
invocation_hint=0x7fffffffd450, marshal_data=0x0)
    at /home/carlos/Source/gnome/glib/gobject/gmarshal.c:875
#12 0x00007ffff0c3d988 in g_closure_invoke (closure=0xd02e70, return_value=0x0,
n_param_values=1, param_values=0x7fffffffd510, invocation_hint=0x7fffffffd450)
    at /home/carlos/Source/gnome/glib/gobject/gclosure.c:804
#13 0x00007ffff0c5ae29 in signal_emit_unlocked_R (node=0x717b30, detail=0,
instance=0x748220, emission_return=0x0, instance_and_params=0x7fffffffd510)
    at /home/carlos/Source/gnome/glib/gobject/gsignal.c:3635
#14 0x00007ffff0c5a177 in g_signal_emit_valist (instance=0x748220,
signal_id=39, detail=0, var_args=0x7fffffffd7c8) at
/home/carlos/Source/gnome/glib/gobject/gsignal.c:3391
#15 0x00007ffff0c5a6b9 in g_signal_emit (instance=0x748220, signal_id=39,
detail=0) at /home/carlos/Source/gnome/glib/gobject/gsignal.c:3447
#16 0x00007ffff1ef5588 in _gdk_frame_clock_emit_layout (frame_clock=0x748220)
at gdkframeclock.c:634
#17 0x00007ffff1ef601e in gdk_frame_clock_paint_idle (data=0x748220) at
gdkframeclockidle.c:408
#18 0x00007ffff1ed8dfd in gdk_threads_dispatch (data=0x86c300) at gdk.c:743
#19 0x00007ffff09590b5 in g_timeout_dispatch (source=0xbfdcc0,
callback=0x7ffff1ed8db8 <gdk_threads_dispatch>, user_data=0x86c300) at
/home/carlos/Source/gnome/glib/glib/gmain.c:4672
#20 0x00007ffff0957225 in g_main_dispatch (context=0x6f1a90) at
/home/carlos/Source/gnome/glib/glib/gmain.c:3201
#21 0x00007ffff09580a7 in g_main_context_dispatch (context=0x6f1a90) at
/home/carlos/Source/gnome/glib/glib/gmain.c:3854
#22 0x00007ffff095828b in g_main_context_iterate (context=0x6f1a90, block=1,
dispatch=1, self=0x6f2b30) at /home/carlos/Source/gnome/glib/glib/gmain.c:3927
#23 0x00007ffff095834f in g_main_context_iteration (context=0x6f1a90,
may_block=1) at /home/carlos/Source/gnome/glib/glib/gmain.c:3988
#24 0x00007ffff0f4b112 in g_application_run (application=0x764140, argc=1,
argv=0x7fffffffdc88) at /home/carlos/Source/gnome/glib/gio/gapplication.c:2381
#25 0x00000000004303a3 in main ()
(gdb) p *geometry
$4 = {min_width = 405, min_height = 47, max_width = 0, max_height = 0,
base_width = 0, base_height = 0, width_inc = 0, height_inc = 0, min_aspect = 0,
max_aspect = 0, 
  win_gravity = GDK_GRAVITY_NORTH_WEST}
(gdb) p (GdkWindowImplWayland)*window->impl
$5 = {parent_instance = {parent = {g_type_instance = {g_class = 0x6fd5d0},
ref_count = 30, qdata = 0x0}}, wrapper = 0x6fe330, display_server = {outputs =
0x0, wl_surface = 0xc17710, 
    xdg_surface = 0x11b9d70, xdg_toplevel = 0x11b9dc0, xdg_popup = 0x0,
gtk_surface = 0x11b8430, wl_subsurface = 0x0, egl_window = 0x0,
dummy_egl_window = 0x0, xdg_exported = 0x0}, 
  egl_surface = 0x0, dummy_egl_surface = 0x0, initial_configure_received = 0,
mapped = 1, use_custom_surface = 0, pending_buffer_attached = 0, pending_commit
= 0, awaiting_frame = 0, 
  hint = GDK_WINDOW_TYPE_HINT_NORMAL, transient_for = 0x0, popup_parent = 0x0,
position_method = POSITION_METHOD_NONE, staging_cairo_surface = 0x0,
committed_cairo_surface = 0x0, 
  backfill_cairo_surface = 0x0, pending_buffer_offset_x = 0,
pending_buffer_offset_y = 0, title = 0x11c6da0 "Blank page", application =
{was_set = 1, 
    application_id = 0x11f6400 "org.gnome.Epiphany", app_menu_path = 0x11f6710
"/org/gnome/Epiphany/menus/appmenu", menubar_path = 0x0, 
    window_object_path = 0x11f6740 "/org/gnome/Epiphany/window/1",
application_object_path = 0x11f6770 "/org/gnome/Epiphany", unique_bus_name =
0x11f6790 ":1.113"}, geometry_hints = {
    min_width = 457, min_height = 99, max_width = 0, max_height = 0, base_width
= 0, base_height = 0, width_inc = 0, height_inc = 0, min_aspect = 0, max_aspect
= 0, 
    win_gravity = GDK_GRAVITY_NORTH_WEST}, geometry_mask = (GDK_HINT_MIN_SIZE |
GDK_HINT_BASE_SIZE | GDK_HINT_WIN_GRAVITY), grab_input_seat = 0x0,
pending_frame_counter = 0, scale = 1, 
  margin_left = 26, margin_right = 26, margin_top = 23, margin_bottom = 29,
margin_dirty = 0, initial_fullscreen_monitor = -1, opaque_region = 0x1192550,
opaque_region_dirty = 1, 
  input_region = 0x0, input_region_dirty = 1, staged_updates_region = 0x0,
saved_width = 600, saved_height = 547, parent_surface_committed_handler = 0,
pending_move_to_rect = {rect = {x = 0, 
      y = 0, width = 0, height = 0}, rect_anchor = 0, window_anchor = 0,
anchor_hints = 0, rect_anchor_dx = 0, rect_anchor_dy = 0}, pending = {width =
0, height = 0, state = (unknown: 0)}, 
  exported = {callback = 0x0, user_data = 0x0, destroy_func = 0x0},
imported_transient_for = 0x0}

So min_height is 47, and impl->margin_top+bottom are 23+29=52, this results in
the -5 size.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
wayland-bugs mailing list
wayland-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to