Skip to content
Browse files

Support for Wingo.

  • Loading branch information...
1 parent eb8cd2f commit 1df950b8589d3723e12885742ec3f98b746538c4 @BurntSushi committed Oct 15, 2012
Showing with 9 additions and 3 deletions.
  1. +8 −3 pagermh/pager.py
  2. +1 −0 pagermh/state.py
View
11 pagermh/pager.py
@@ -99,9 +99,14 @@ def update_desktop_order():
return
for physind, xscreen in enumerate(state.xtophys):
for d in desktops:
- if d.desk == state.visibles[xscreen]:
- old = desktops[physind]
- d.desk, old.desk = old.desk, d.desk
+ if state.wmname == 'Wingo':
+ if d.desk == state.visibles[physind]:
+ old = desktops[physind]
+ d.desk, old.desk = old.desk, d.desk
+ else:
+ if d.desk == state.visibles[xscreen]:
+ old = desktops[physind]
+ d.desk, old.desk = old.desk, d.desk
def update(d):
if d < len(desktops):
View
1 pagermh/state.py
@@ -7,6 +7,7 @@
import xpybutil
import xpybutil.ewmh as ewmh
+wmname = 'N/A'
wmrunning = False
while not wmrunning:
w = ewmh.get_supporting_wm_check(xpybutil.root).reply()

0 comments on commit 1df950b

Please sign in to comment.
Something went wrong with that request. Please try again.