allow cycling without a modifier in the binding
This commit is contained in:
parent
31d41a7aa6
commit
5fc7db1c16
1 changed files with 1 additions and 8 deletions
|
@ -230,16 +230,10 @@ class _Cycle:
|
||||||
|
|
||||||
def next(self, data):
|
def next(self, data):
|
||||||
"""Focus the next window."""
|
"""Focus the next window."""
|
||||||
if not data.state:
|
|
||||||
raise RuntimeError("next must be bound to a key" +
|
|
||||||
"combination with at least one modifier")
|
|
||||||
self.cycle(data, 1)
|
self.cycle(data, 1)
|
||||||
|
|
||||||
def previous(self, data):
|
def previous(self, data):
|
||||||
"""Focus the previous window."""
|
"""Focus the previous window."""
|
||||||
if not data.state:
|
|
||||||
raise RuntimeError("previous must be bound to a key" +
|
|
||||||
"combination with at least one modifier")
|
|
||||||
self.cycle(data, 0)
|
self.cycle(data, 0)
|
||||||
|
|
||||||
#---------------------- Window Cycling --------------------
|
#---------------------- Window Cycling --------------------
|
||||||
|
@ -413,8 +407,7 @@ class _CycleWindowsLinear(_CycleWindows):
|
||||||
def populateItems(self):
|
def populateItems(self):
|
||||||
# get the list of clients, keeping iconic windows at the bottom
|
# get the list of clients, keeping iconic windows at the bottom
|
||||||
iconic_clients = []
|
iconic_clients = []
|
||||||
for i in range(self.screen.clientCount()):
|
for c in self.screen.clients:
|
||||||
c = self.screen.client(i)
|
|
||||||
if self.shouldAdd(c):
|
if self.shouldAdd(c):
|
||||||
self.items.append(c)
|
self.items.append(c)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue