]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/33-size-hints.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 33-size-hints.t
index 0d607dbcb777c0d7d18a08b573b4c58938b55caf..d2d77e8e0f2ae6abb6b14684776dfcf26b96c62b 100644 (file)
@@ -11,13 +11,7 @@ my $tmp = fresh_workspace;
 
 ok(@{get_ws_content($tmp)} == 0, 'no containers yet');
 
-my $win = $x->root->create_child(
-    class => WINDOW_CLASS_INPUT_OUTPUT,
-    rect => X11::XCB::Rect->new(x => 0, y => 0, width => 30, height => 30),
-    background_color => '#C0C0C0',
-    event_mask => [ 'structure_notify' ],
-);
-
+my $win = open_window($x, { dont_map => 1 });
 # XXX: we should check screen size. in screens with an AR of 2.0,
 # this is not a good idea.
 my $aspect = X11::XCB::Sizehints::Aspect->new;