lichie567 / LMeter

A Dalamud Plugin to display ACT combat log data in FFXIV
MIT License
65 stars 39 forks source link

Config window appears partially offscreen with multiple monitors #83

Open sersorrel opened 2 months ago

sersorrel commented 2 months ago

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?)