feat(positioner): add moveWindowConstrained for tray-icon positions (#2076)

This commit is contained in:
Jakob Westhoff
2024-11-20 02:05:37 +02:00
committed by GitHub
parent 383e636a8e
commit 4db626354c
11 changed files with 352 additions and 163 deletions
@@ -0,0 +1,13 @@
# Automatically generated - DO NOT EDIT!
"$schema" = "../../schemas/schema.json"
[[permission]]
identifier = "allow-move-window-constrained"
description = "Enables the move_window_constrained command without any pre-configured scope."
commands.allow = ["move_window_constrained"]
[[permission]]
identifier = "deny-move-window-constrained"
description = "Denies the move_window_constrained command without any pre-configured scope."
commands.deny = ["move_window_constrained"]
@@ -3,7 +3,8 @@
Allows the moveWindow and handleIconState APIs
- `allow-move-window`
- `set-tray-icon-state`
- `allow-move-window-constrained`
- `allow-set-tray-icon-state`
## Permission Table
@@ -43,6 +44,32 @@ Denies the move_window command without any pre-configured scope.
<tr>
<td>
`positioner:allow-move-window-constrained`
</td>
<td>
Enables the move_window_constrained command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`positioner:deny-move-window-constrained`
</td>
<td>
Denies the move_window_constrained command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`positioner:allow-set-tray-icon-state`
</td>
+5 -1
View File
@@ -1,4 +1,8 @@
"$schema" = "schemas/schema.json"
[default]
description = "Allows the moveWindow and handleIconState APIs"
permissions = ["allow-move-window", "set-tray-icon-state"]
permissions = [
"allow-move-window",
"allow-move-window-constrained",
"allow-set-tray-icon-state",
]
@@ -304,6 +304,16 @@
"type": "string",
"const": "deny-move-window"
},
{
"description": "Enables the move_window_constrained command without any pre-configured scope.",
"type": "string",
"const": "allow-move-window-constrained"
},
{
"description": "Denies the move_window_constrained command without any pre-configured scope.",
"type": "string",
"const": "deny-move-window-constrained"
},
{
"description": "Enables the set_tray_icon_state command without any pre-configured scope.",
"type": "string",