Skip to content

Commit

Permalink
#2351 don't enable idle mixin for clients without keyboard, mouse or …
Browse files Browse the repository at this point in the history
…windows shown

git-svn-id: https://xpra.org/svn/Xpra/trunk@25163 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 6, 2020
1 parent d673ec8 commit b2ffd63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/xpra/server/source/idle_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

class IdleMixin(StubSourceMixin):

@classmethod
def is_needed(cls, caps : typedict) -> bool:
#the 'keyboard' and 'mouse' capability were only added in v4,
#so we have to enable the mixin by default:
return caps.boolget("keyboard", True) or caps.boolget("mouse", True) or caps.boolget("windows", False)

def __init__(self):
self.idle_timeout = 0

Expand Down

0 comments on commit b2ffd63

Please sign in to comment.