https://bugs.kde.org/show_bug.cgi?id=409675

--- Comment #7 from Michal Mutl <michal.m...@mitec.cz> ---
Windows size and position must be saved, of course, for any used resolution and
number of monitors, but it is nothing impossible.
Let us consider e.g. ini file to store this configuration.
Kate starts for the first time, user changes size and position and Kate saves
such record

[MainWindow]
Size(1366x1080x96)=500,1000
Pos(1366x1080x96)=10,10

Then user changes resolution to e.g. 1920x1080x120 (or connect another
monitor,changes only dpi etc). If Kate is running, no problem, user will
probably change size and position to reflect new screen size and dpi. Kate
simply saves new values and ini file now looks like this

[MainWindow]
Size(1366x768x96)=500,600
Pos(1366x768x96)=10,10
Size(1920x1080x120)=1000,800
Pos(1920x1080x120)=20,20

If user dos not change position manually, Kate either catches WMDPICHANGED and
WMDISPLAYCHANGE messages and saves its size and pos itself or saves these
values on its exit.

if Kate is started then it detects desktop size and dpi and looks for
appropriate record in ini file and restores its size and position. If record is
not found then Kate starts with default size and pos.

What do you think?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to