Skip to content

Commit

Permalink
wpe: Add pixdecor shade toggle method
Browse files Browse the repository at this point in the history
  • Loading branch information
soreau committed Sep 2, 2024
1 parent 872e8e4 commit 40ed676
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 40ed676

Please sign in to comment.