Browse Source

fixed window sorting

Kajetan Johannes Hammerle 4 years ago
parent
commit
8d17350b90
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rescriptoon/__init__.py

+ 1 - 1
rescriptoon/__init__.py

@@ -215,7 +215,7 @@ class Overlay:
             # https://stackoverflow.com/a/12854004/5894777
             # possible workaround:
             # http://science.su/stuff/so/print_frame_geometry_of_all_windows.py
-            key=lambda w: w.get_geometry().x,
+            key=lambda w: w.query_tree().parent.get_geometry().x,
         )
 
     def _update_active_key_registry(self, xkeyevent):