diff --git a/lib/uh/wm/testing/acceptance_helpers.rb b/lib/uh/wm/testing/acceptance_helpers.rb index be11f36..a1324b3 100644 --- a/lib/uh/wm/testing/acceptance_helpers.rb +++ b/lib/uh/wm/testing/acceptance_helpers.rb @@ -99,6 +99,11 @@ module Uh `xwininfo -id #{x_window_id options}`[/Map State: (\w+)/, 1] end + def x_window_unmap options + x_client(options).unmap + x_client(options).sync + end + def x_clients_ensure_stop @x_clients and @x_clients.any? and @x_clients.values.each &:terminate end @@ -165,6 +170,11 @@ module Uh window.map self end + + def unmap + window.unmap + self + end end end end