Beispiel #1
0
 def test_recent(self, qtile):
     qtile.test_window('a')
     qtile.test_window('b')
     qtile.test_window('c')
     assert_focused(qtile, 'c')
     qtile.c.layout.recent()
     assert_focused(qtile, 'b')
     qtile.c.layout.recent()
     assert_focused(qtile, 'c')
     qtile.c.layout.next()
     assert_focused(qtile, 'a')
     qtile.c.layout.recent()
     assert_focused(qtile, 'c')
Beispiel #2
0
 def test_windows(self, qtile):
     qtile.test_window('a')
     qtile.test_window('b')
     qtile.test_window('c')
     assert_focused(qtile, 'c')
     assert tree(qtile) == ['a', 'b', 'c']
Beispiel #3
0
 def test_directions(self, qtile, grid):
     assert_focused(qtile, 'd')
     qtile.c.layout.left()
     assert_focused(qtile, 'c')
     qtile.c.layout.up()
     assert_focused(qtile, 'a')
     qtile.c.layout.right()
     assert_focused(qtile, 'b')
     qtile.c.layout.down()
     assert_focused(qtile, 'd')
     qtile.c.layout.down()
     assert_focused(qtile, 'd')
     qtile.c.layout.previous()
     assert_focused(qtile, 'b')
     qtile.c.layout.next()
     assert_focused(qtile, 'd')