Skip to content

Commit

Permalink
#4386 call go_idle / no_idle to limit screen updates
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 12, 2024
1 parent 678f422 commit 31c1598
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xpra/server/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,16 @@ def __init__(self):
def suspend_event(self, args):
ServerCore.suspend_event(self, args)
self.server_event("suspend")
for s in self._server_sources.values():
if hasattr(s, "go_idle"):
s.go_idle()

def resume_event(self, args):
ServerCore.resume_event(self, args)
self.server_event("resume")
for s in self._server_sources.values():
if hasattr(s, "no_idle"):
s.no_idle()

def server_event(self, event_type: str, *args: PacketElement) -> None:
for s in self._server_sources.values():
Expand Down

0 comments on commit 31c1598

Please sign in to comment.