Skip to content

Commit

Permalink
#4363 fixup control refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 11, 2024
1 parent a451f84 commit e4692fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xpra/server/mixins/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def add_control_command(self, name: str, control) -> None:
def handle_command_request(self, proto, *args) -> None:
""" client sent a command request as part of the hello packet """
assert args, "no arguments supplied"
from xpra.net.control import process_control_command
from xpra.net.control.common import process_control_command
code, response = process_control_command(proto, self.control_commands, *args)
hello = {"command_response": (code, response)}
proto.send_now(("hello", hello))
2 changes: 1 addition & 1 deletion xpra/x11/server/seamless.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def add_control_commands(self) -> None:
if not features.control:
return
super().add_control_commands()
from xpra.net.control import ArgsControlCommand
from xpra.net.control.common import ArgsControlCommand
cmd = ArgsControlCommand("show-all-windows", "make all the windows visible", validation=[])

def control_cb() -> str:
Expand Down

0 comments on commit e4692fa

Please sign in to comment.