parent
5b9180fc1b
commit
b2f8c8df89
|
@ -1434,8 +1434,9 @@ function placement.restore(d, args)
|
||||||
-- Some people consider that once moved to another screen, then
|
-- Some people consider that once moved to another screen, then
|
||||||
-- the memento needs to be upgraded. For now this is only true for
|
-- the memento needs to be upgraded. For now this is only true for
|
||||||
-- maximization until someone complains.
|
-- maximization until someone complains.
|
||||||
if memento.sgeo and memento.screen and args.context == "maximize"
|
if memento.sgeo and memento.screen and memento.screen.valid
|
||||||
and d.screen and get_screen(memento.screen) ~= get_screen(d.screen) then
|
and args.context == "maximize" and d.screen
|
||||||
|
and get_screen(memento.screen) ~= get_screen(d.screen) then
|
||||||
-- Use the absolute geometry as the memento also does
|
-- Use the absolute geometry as the memento also does
|
||||||
local sgeo = get_screen(d.screen).geometry
|
local sgeo = get_screen(d.screen).geometry
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue