Skip to content

Commit

Permalink
- Round-Robin mode now temporarily disables Focus Follows Mouse
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Thaler committed Dec 1, 2020
1 parent 4eb40c1 commit c0c46f9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Basic Round-Robin/BasicRoundRobin.Uplink.iss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ objectdef brrUplink
{
variable brrSettings Settings

variable bool RestoreFocusFollowsMouse

method Initialize()
{
LGUI2:LoadPackageFile[BasicRoundRobin.Uplink.lgui2Package.json]
Expand Down Expand Up @@ -31,6 +33,20 @@ objectdef brrUplink
if ${newValue}==${Settings.Enable}
return
Settings.Enable:Set[${newValue}]

if ${newValue}
{
RestoreFocusFollowsMouse:Set[${BWLUplink.FocusFollowsMouse}]
BWLUplink:SetFocusFollowsMouse[FALSE]
}
else
{
if ${RestoreFocusFollowsMouse}
{
BWLUplink:SetFocusFollowsMouse[TRUE]
}
}

; Settings:Store

; push updated setting
Expand Down

0 comments on commit c0c46f9

Please sign in to comment.