You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, runtime.ScreenGetAll() provides information about screen size but lacks screen position data, which is crucial for proper window positioning in multi-monitor setups. This makes it difficult to reliably position windows on specific monitors.
Describe the solution you'd like
Add position fields to the Screen struct.
The information to populate those is already available internally on supported platforms in `internal/frontend/desktop/*/screen.go:
Windows: all info is readily available: inside EnumProc(), see lprcMonitor
macOS: inside GetNthScreen: you can get values from NSScreen frame
Linux: inside GetNThMonitor: use x and y fields in GdkRectangle geometry
Describe alternatives you've considered
No response
Additional context
Use Case:
When restoring window position in multi-monitor setups, we need to:
Know where each screen is located in the virtual desktop space
Validate if saved window coordinates are within valid screen bounds
Ensure windows are restored to the correct monitor
Handle cases where the previous monitor setup is no longer available
The text was updated successfully, but these errors were encountered:
Thanks for opening this. Enhancements are now mainly considered for v3. To make sure that proposals are given proper consideration, we have created a process for proposing enhancements (this includes proposals to improve the enhancement proposal 😅) here: https://github.com/wailsapp/wails/blob/v3-alpha/v3/wep/README.md
Feel free to create a proposal and link to this ticket 👍
@adnsv you gonna also needs, onscreen change event and getScreenAll to correctly return info for whatever in your mind dealing with multiscreen, both I tried last time on V3, either absent or not working correctly .
Is your feature request related to a problem? Please describe.
Currently,
runtime.ScreenGetAll()
provides information about screen size but lacks screen position data, which is crucial for proper window positioning in multi-monitor setups. This makes it difficult to reliably position windows on specific monitors.Describe the solution you'd like
Add position fields to the Screen struct.
The information to populate those is already available internally on supported platforms in `internal/frontend/desktop/*/screen.go:
EnumProc()
, seelprcMonitor
GetNthScreen
: you can get values fromNSScreen frame
GetNThMonitor
: usex
andy
fields inGdkRectangle geometry
Describe alternatives you've considered
No response
Additional context
Use Case:
When restoring window position in multi-monitor setups, we need to:
The text was updated successfully, but these errors were encountered: