cmd 'move left';
+sync_with_i3;
+
my ($absolute, $top) = $floatwin->rect;
is($absolute->x, ($absolute_before->x - 10), 'moved 10 px to the left');
cmd 'move right';
+sync_with_i3;
+
($absolute, $top) = $floatwin->rect;
is($absolute->x, ($absolute_before->x + 10), 'moved 10 px to the right');
cmd 'move up';
+sync_with_i3;
+
($absolute, $top) = $floatwin->rect;
is($absolute->x, $absolute_before->x, 'x not changed');
cmd 'move down';
+sync_with_i3;
+
($absolute, $top) = $floatwin->rect;
is($absolute->x, $absolute_before->x, 'x not changed');
cmd 'move left 20 px';
+sync_with_i3;
+
($absolute, $top) = $floatwin->rect;
is($absolute->x, ($absolute_before->x - 20), 'moved 20 px to the left');
$x->flush();
+# Returns the _NET_CURRENT_DESKTOP property from the root window. This is
+# the 0 based index of the current desktop.
sub current_desktop_index {
- # Returns the _NET_CURRENT_DESKTOP property from the root window. This is
- # the 0 based index of the current desktop.
+ sync_with_i3;
my $cookie = $x->get_property(0, $root, $_NET_CURRENT_DESKTOP,
$CARDINAL, 0, 1);