Skip to content

Commit

Permalink
ref: tile only on release
Browse files Browse the repository at this point in the history
  • Loading branch information
leukipp committed Jan 14, 2024
1 parent 2531d73 commit e94bb9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions desktop/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ func (tr *Tracker) onStateUpdate(aname string) {
}

func (tr *Tracker) onPointerUpdate(button uint16) {
release := button == 0

// Reset timer
if tr.Handler.Timer != nil {
Expand All @@ -430,7 +431,7 @@ func (tr *Tracker) onPointerUpdate(button uint16) {

// Wait on button release
var t time.Duration = 0
if button == 0 {
if release {
t = 50
}

Expand Down Expand Up @@ -463,7 +464,9 @@ func (tr *Tracker) onPointerUpdate(button uint16) {
}

// Tile workspace
tr.ActiveWorkspace().Tile()
if release {
tr.ActiveWorkspace().Tile()
}
}
})
}
Expand Down

0 comments on commit e94bb9a

Please sign in to comment.