Skip to content

Commit

Permalink
fix: tiling loop on window maximization #36
Browse files Browse the repository at this point in the history
  • Loading branch information
leukipp committed Jan 11, 2024
1 parent 3c99dbf commit 31df236
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions desktop/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,14 @@ func (tr *Tracker) handleMaximizedClient(c *store.Client) {
}
log.Debug("Client maximized handler fired [", c.Latest.Class, "]")

// Update client states
c.Update()

// Set fullscreen layout
c.UnMaximize()
tr.Action <- "layout_fullscreen"
c.Activate()

break
}
}
Expand All @@ -207,6 +212,7 @@ func (tr *Tracker) handleMinimizedClient(c *store.Client) {

// Untrack client
tr.untrackWindow(c.Win.Id)

break
}
}
Expand Down

0 comments on commit 31df236

Please sign in to comment.