LMeter icon indicating copy to clipboard operation
LMeter copied to clipboard

Config window appears partially offscreen with multiple monitors

Open sersorrel opened this issue 5 months ago • 0 comments

When I /lm for the first time since last launching the game, the config window appears partially offscreen. I think it's trying to centre itself on the midpoint of all my monitors (even though XIV is obviously only displaying on one monitor). I do not have Dalamud's multi-monitor windows setting enabled.

I presume this line is incorrect:

https://github.com/lichie567/LMeter/blob/f16f4d20e89306beb41d0d95943e5ff886ffcfca/LMeter/PluginManager.cs#L50

I suspect you need to take into account the .Pos of the viewport as well as its size.

(most plugins seem content to let window settings be saved, so config windows and the like appear where they were manually moved to; is there a particular reason lmeter diverges from the norm here?)

sersorrel avatar Sep 06 '24 00:09 sersorrel