[client] Ship a legacy GTK3 UI package for distros without WebKitGTK 6.0 (#7040)

Ship a legacy GTK3 UI package for distros without WebKitGTK 6.0
This commit is contained in:
Zoltan Papp
2026-08-06 12:13:20 +02:00
committed by GitHub
parent b2ae98f0fd
commit 98f8a24108
6 changed files with 311 additions and 3 deletions
+6
View File
@@ -49,5 +49,11 @@ func getCursorPosition(app *application.App) (application.Point, bool) {
if app == nil || app.Screen == nil {
return p, true
}
// The wails GTK3 backend caches screens from the active window; a tray app
// has none at startup, so the cache is empty and PhysicalToDipPoint would
// dereference a nil nearest screen. Raw pixels are correct there anyway.
if app.Screen.ScreenNearestPhysicalPoint(p) == nil {
return p, true
}
return app.Screen.PhysicalToDipPoint(p), true
}