Skip to content

Commit

Permalink
Move focus to popup windows if root window is focused
Browse files Browse the repository at this point in the history
Fixes #82
  • Loading branch information
aarzilli committed Oct 3, 2024
1 parent e3acdb2 commit 4e84d70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nucular.go
Original file line number Diff line number Diff line change
Expand Up @@ -2719,6 +2719,7 @@ func (ctx *context) popupOpen(title string, flags WindowFlags, rect rect.Rect, s
}
ctx.Windows = append(ctx.Windows, popup)
ctx.dockedWindowFocus = 0
ctx.rootWindowFocus = false

if scale {
rect.X = ctx.scale(rect.X)
Expand Down

0 comments on commit 4e84d70

Please sign in to comment.