def test_fullscreen(manager):
    """Ensure that fullscreen saves and restores geometry"""
    manager.test_window("one")
    manager.c.window.set_position_floating(50, 20)
    manager.c.window.set_size_floating(1280, 720)
    assert manager.c.window.info()["width"] == 1280
    assert manager.c.window.info()["height"] == 720
    assert manager.c.window.info()["x"] == 50
    assert manager.c.window.info()["y"] == 20
    assert manager.c.window.info()["group"] == "a"

    manager.c.window.toggle_fullscreen()
    assert manager.c.window.info()["width"] == 1920
    assert manager.c.window.info()["height"] == 1080
    assert manager.c.window.info()["x"] == 0
    assert manager.c.window.info()["y"] == 0
    assert manager.c.window.info()["group"] == "a"

    manager.c.window.toggle_fullscreen()
    assert manager.c.window.info()["width"] == 1280
    assert manager.c.window.info()["height"] == 720
    assert manager.c.window.info()["x"] == 50
    assert manager.c.window.info()["y"] == 20
    assert manager.c.window.info()["group"] == "a"
Ensure that fullscreen saves and restores geometry
test/test_floating.py