Skip to content

Commit

Permalink
Merge pull request #9 from WayfireWM/add-shade-toggle
Browse files Browse the repository at this point in the history
wpe: Add pixdecor shade toggle method
  • Loading branch information
killown authored Sep 2, 2024
2 parents 872e8e4 + 40ed676 commit ca1d2ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wayfire/extra/wpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,8 @@ def fs_has_shader(self, output_name: str):
def get_view_info(self):
message = get_msg_template("wf-info/get_view_info")
return self.socket.send_json(message)

def shade_toggle(self, view_id: int):
message = get_msg_template("pixdecor/shade_toggle")
message["data"]["view-id"] = view_id
return self.socket.send_json(message)

0 comments on commit ca1d2ef

Please sign in to comment.