https://bugs.kde.org/show_bug.cgi?id=490833

Vlad Zahorodnii <vlad.zahorod...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |DOWNSTREAM

--- Comment #4 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
(In reply to Nate Graham from comment #2)
> Created attachment 172211 [details]
> WAYLAND_DEBUG=1 log on KWin
> 
> Log from KWin, where it happens.

[  39389.249] wl_pointer@21.motion(92984635, 497.17187500, 15.31250000)
[  39389.308] wl_pointer@21.frame()
[  39597.188] wl_pointer@21.button(289571, 92984843, 272, 1)
[  39597.237] wl_pointer@21.frame()
[  39606.626]  -> wl_pointer@21.set_cursor(289562, wl_surface@26, 6, 6)
[  39606.666]  -> wl_surface@26.attach(wl_buffer@53, 0, 0)
[  39606.679]  -> wl_surface@26.set_buffer_scale(1)
[  39606.688]  -> wl_surface@26.damage(0, 0, 48, 48)
[  39606.696]  -> wl_surface@26.commit()
[  39613.845]  -> wl_compositor@4.create_surface(new id wl_surface@57)
[  39613.921]  -> wl_surface@57.set_buffer_scale(3)
[  39614.028]  -> wl_surface@57.set_buffer_scale(3)
[  39615.008]  -> xdg_wm_base@28.create_positioner(new id xdg_positioner@52)
[  39615.028]  -> xdg_positioner@52.set_size(232, 338)
[  39615.038]  -> xdg_positioner@52.set_anchor_rect(466, 0, 47, 27)
[  39615.046]  -> xdg_positioner@52.set_offset(0, 0)
[  39615.054]  -> xdg_positioner@52.set_anchor(6)
[  39615.061]  -> xdg_positioner@52.set_gravity(8)
[  39615.068]  -> xdg_positioner@52.set_constraint_adjustment(59)
[  39615.076]  -> xdg_wm_base@28.get_xdg_surface(new id xdg_surface@58,
wl_surface@57)
[  39615.085]  -> xdg_surface@58.get_popup(new id xdg_popup@51, xdg_surface@41,
xdg_positioner@52)
[  39615.094]  -> xdg_positioner@52.destroy()
[  39615.104]  -> xdg_po...@51.grab(wl_seat@22, 289571)
[  39615.114]  -> wl_surface@57.commit()
[  39621.485]  -> xdg_popup@51.destroy()
[  39621.521]  -> xdg_surface@58.destroy()
[  39621.530]  -> wl_surface@57.destroy()
[  39626.490]  -> wl_pointer@21.set_cursor(289562, wl_surface@26, 6, 6)
[  39626.514]  -> wl_surface@26.attach(wl_buffer@53, 0, 0)
[  39626.523]  -> wl_surface@26.set_buffer_scale(1)
[  39626.529]  -> wl_surface@26.damage(0, 0, 48, 48)
[  39626.536]  -> wl_surface@26.commit()
[  39633.002]  -> wl_compositor@4.create_surface(new id wl_surface@56)
[  39633.046]  -> wl_surface@56.set_buffer_scale(3)
[  39633.125]  -> wl_surface@56.set_buffer_scale(3)
[  39634.649]  -> xdg_wm_base@28.create_positioner(new id xdg_positioner@59)
[  39634.668]  -> xdg_positioner@59.set_size(312, 488)
[  39634.678]  -> xdg_positioner@59.set_anchor_rect(0, 0, 39, 27)
[  39634.686]  -> xdg_positioner@59.set_offset(0, 0)
[  39634.693]  -> xdg_positioner@59.set_anchor(6)
[  39634.700]  -> xdg_positioner@59.set_gravity(8)
[  39634.707]  -> xdg_positioner@59.set_constraint_adjustment(59)
[  39634.716]  -> xdg_wm_base@28.get_xdg_surface(new id xdg_surface@60,
wl_surface@56)
[  39634.725]  -> xdg_surface@60.get_popup(new id xdg_popup@61, xdg_surface@41,
xdg_positioner@59)
[  39634.735]  -> xdg_positioner@59.destroy()
[  39634.745]  -> xdg_po...@61.grab(wl_seat@22, 289571)
[  39634.757]  -> wl_surface@56.commit()
[  39646.285]  -> wl_shm@7.create_pool(new id wl_shm_pool@62, fd 18, 8079360)
[  39646.331]  -> wl_shm_pool@62.create_buffer(new id wl_buffer@63, 0, 1920,
1052, 7680, 0)
[  39666.509]  -> wl_surface@33.attach(wl_buffer@63, 0, 0)
[  39666.548]  -> wl_surface@33.set_buffer_scale(1)
[  39666.559]  -> wl_surface@33.damage(0, 0, 1920, 1052)
[  39666.567]  -> xdg_toplevel@42.set_min_size(707, 440)
[  39666.573]  -> xdg_toplevel@42.set_max_size(0, 0)
[  39666.591]  -> xdg_surface@41.set_window_geometry(0, 0, 1920, 1052)
[  39666.969]  -> wl_surface@33.frame(new id wl_callback@64)
[  39666.981]  -> wl_surface@33.commit()
[  39667.074] wl_display@1.delete_id(52)
[  39667.086] wl_display@1.delete_id(51)
[  39667.093] wl_display@1.delete_id(58)
[  39667.099] wl_display@1.delete_id(57)
[  39667.106] wl_display@1.delete_id(59)
[  39667.113] xdg_popup@61.configure(0, 27, 312, 488)

so what happens is the following:

- kwin sends a button press at 497.17187500, 15.31250000
- inkscape creates a popup menu with anchor rect `466,0 47x27`
- so far so good, but then it **immediately** destroys that popup and creates a
new one with the anchor rect `0,0 39x27`

this is not right and points to the client. This might be a gtk bug.

It's interesting why the behavior is different when using kwin and weston. My
guess is that the difference comes to test environment differences, e.g. maybe
different output layouts, etc.

As far as I can tell, kwin doesn't do anything wrong. Can you please report
this issue to GTK developers?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to