We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c386300 commit 46cef19Copy full SHA for 46cef19
lua/movewindow.lua
@@ -397,5 +397,15 @@ function movewindow.save_state (win)
397
SetVariable ("mw_" .. win .. "_windowy", mwi.window_top)
398
SetVariable ("mw_" .. win .. "_windowmode", mwi.window_mode)
399
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
409
410
411
end -- movewindow.save_state
0 commit comments