Skip to content

Commit ee770c0

Browse files
authored
Merge pull request slgobinath#705 from deltragon/comment-ext-idle
comment on ext-idle-notify that it uses a separate wayland connection
2 parents aeb0529 + abafbb7 commit ee770c0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

safeeyes/plugins/smartpause/ext_idle_notify.py

+13
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@ class ExtIdleNotify:
4141
_idle_since = None
4242

4343
def __init__(self):
44+
# Note that this creates a new connection to the wayland compositor.
45+
# This is not an issue per se, but does mean that the compositor sees this as
46+
# a new, separate client, that just happens to run in the same process as
47+
# the SafeEyes gtk application.
48+
# (This is not a problem, currently. swayidle does the same, it even runs in a
49+
# separate process.)
50+
# If in the future, a compositor decides to lock down ext-idle-notify-v1 to
51+
# clients somehow, and we need to share the connection to wl_display with gtk
52+
# (which might require some hacks, or FFI code), we might run into other issues
53+
# described in this mailing thread:
54+
# https://lists.freedesktop.org/archives/wayland-devel/2019-March/040344.html
55+
# The best thing would be, of course, for gtk to gain native support for
56+
# ext-idle-notify-v1.
4457
self._display = Display()
4558
self._display.connect()
4659
self._r_channel, self._w_channel = os.pipe()

0 commit comments

Comments
 (0)