Skip to content

Commit 92dd14a

Browse files
authored
Same re-removal for asyncio version
1 parent 55cbe33 commit 92dd14a

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

i3ipc/aio/connection.py

-18
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
import os
88
import json
99
from typing import Optional, List, Tuple, Callable, Union
10-
from Xlib import display, X
11-
from Xlib.error import DisplayError
1210
import struct
1311
import socket
1412
import logging
@@ -203,22 +201,6 @@ def exists(path):
203201
if exists(socket_path):
204202
return socket_path
205203

206-
# next try the root window property
207-
try:
208-
d = display.Display()
209-
atom = d.get_atom('I3_SOCKET_PATH')
210-
root = d.screen().root
211-
prop = root.get_full_property(atom, X.AnyPropertyType)
212-
if prop and prop.value:
213-
socket_path = prop.value.decode()
214-
except DisplayError as e:
215-
logger.info('could not get i3 socket path from root atom', exc_info=e)
216-
217-
if socket_path:
218-
logger.info('got socket path from root atom: %s', socket_path)
219-
if exists(socket_path):
220-
return socket_path
221-
222204
# finally try the binaries
223205
for binary in ('i3', 'sway'):
224206
try:

test/aio/window.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from Xlib.display import Display
33
from threading import Thread
44

5-
65
class Window(object):
76
def __init__(self, display=None):
87
if display is None:

0 commit comments

Comments
 (0)