Quickfix for reported bug (hack still not working for maximized windows)