From anonymous, 1 Month ago, written in Diff-output.
Embed
  1. diff --git tests/conftest.py tests/conftest.py
  2. index 5412d39..0653be5 100644
  3. --- tests/conftest.py
  4. +++ tests/conftest.py
  5. @@ -618,6 +618,7 @@ def x11(x11_connection):
  6.                  # the following coordinates are only relative
  7.                  # to the parent of window
  8.                  geom = window.get_geometry()
  9. +                print(geom)
  10.                  x += geom.x
  11.                  y += geom.y
  12.                  # check if the window's parent is already the root window
  13. diff --git tests/test_mousebind.py tests/test_mousebind.py
  14. index dc9dfab..fc78b38 100644
  15. --- tests/test_mousebind.py
  16. +++ tests/test_mousebind.py
  17. @@ -104,12 +104,12 @@ def test_complete_mousebind_validates_all_button(hlwm):
  18.  def test_drag_move(hlwm, x11, mouse):
  19.      hlwm.call('set_attr tags.focus.floating on')
  20.      client, winid = x11.create_client()
  21. +    hlwm.call('true')  # sync
  22.      x, y = x11.get_absolute_top_left(client)
  23.      mouse.move_into(winid)
  24.  
  25.      hlwm.call(['drag', winid, 'move'])
  26.      mouse.move_relative(12, 15)
  27. -    hlwm.call('true')  # sync
  28.  
  29.      assert x11.get_absolute_top_left(client) == (x + 12, y + 15)
  30.  
  31.