We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c59a47e commit 90a443aCopy full SHA for 90a443a
display_server_interactions/__main__.py
@@ -5,14 +5,15 @@
5
6
7
def main() -> None:
8
- window = DSI.get_active_window()
+ with DSI() as dsi:
9
+ window = dsi.get_active_window()
10
- print("Active window: ")
11
- print("\tName: {}".format(window.name))
12
- print("\tPID: {}".format(window.pid))
13
- if window.xid:
14
- print("\tXID: {}".format(window.xid))
15
- print("\tGeometry: {}".format(window.geometry))
+ print("Active window: ")
+ print("\tName: {}".format(window.name))
+ print("\tPID: {}".format(window.pid))
+ if window.xid:
+ print("\tXID: {}".format(window.xid))
16
+ print("\tGeometry: {}".format(window.geometry))
17
18
19
if __name__ == "__main__":
0 commit comments