Skip to content

Commit 46cef19

Browse files
committed
Modified movewindow.lua to remember where miniwindow really is in save_state
1 parent c386300 commit 46cef19

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lua/movewindow.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,5 +397,15 @@ function movewindow.save_state (win)
397397
SetVariable ("mw_" .. win .. "_windowy", mwi.window_top)
398398
SetVariable ("mw_" .. win .. "_windowmode", mwi.window_mode)
399399
SetVariable ("mw_" .. win .. "_windowflags", mwi.window_flags)
400+
401+
-- use actual position, not where we happen to think it is, in case another plugin moves it
402+
-- suggested by Fiendish, 27 August 2012.
403+
if WindowInfo (win, 10) then
404+
SetVariable ("mw_" .. win .. "_windowx", WindowInfo(win, 10))
405+
end
406+
if WindowInfo (win, 11) then
407+
SetVariable ("mw_" .. win .. "_windowy", WindowInfo(win, 11))
408+
end
409+
400410

401411
end -- movewindow.save_state

0 commit comments

Comments
 (0)