Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions wayfire/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,3 +972,20 @@ def set_tiling_layout(self, wset: int, x: int, y: int, layout):
msg["data"]["workspace"]["y"] = y
msg["data"]["layout"] = layout
return self.send_json(msg)

def set_tiling_maximized(self, view_id: int, show_maximized: bool):
"""
Set the maximized state of the currently focused tiled view.
Args:
view_id (int): The unique ID of the tiled view.
show_maximized (bool): True to set the view as 'show-maximized', False to unset it.

Returns:
dict: The response from sending the JSON message. Contains "success" if the 'show-maximized'
state was successfully set to the requested value (True or False), or "error" if
the view is not found or not tiled.
"""
message = get_msg_template("simple-tile/set-show-maximized")
message["data"]["view-id"] = view_id
message["data"]["show-maximized"] = show_maximized
return self.send_json(message)