update session expiration dialog texts, add monitor aware position

This commit is contained in:
Eduard Gert
2026-06-08 18:09:22 +02:00
parent b067544c8a
commit 6b2ae1c34c
19 changed files with 321 additions and 226 deletions
+17
View File
@@ -0,0 +1,17 @@
//go:build windows
package services
import (
"github.com/wailsapp/wails/v3/pkg/application"
"github.com/wailsapp/wails/v3/pkg/w32"
)
func getCursorPosition(app *application.App) (application.Point, bool) {
x, y, ok := w32.GetCursorPos()
if !ok || app == nil || app.Screen == nil {
return application.Point{}, false
}
// GetCursorPos is in physical pixels; Screen.Bounds is in DIPs.
return app.Screen.PhysicalToDipPoint(application.Point{X: x, Y: y}), true
}