File tree 1 file changed +13
-0
lines changed
safeeyes/plugins/smartpause
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,19 @@ class ExtIdleNotify:
41
41
_idle_since = None
42
42
43
43
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.
44
57
self ._display = Display ()
45
58
self ._display .connect ()
46
59
self ._r_channel , self ._w_channel = os .pipe ()
You can’t perform that action at this time.
0 commit comments