///| Resizing the output (the nested window was resized): the desktop is drawn at the new size. ///| test "resize redraws the desktop at the new output size" { let socket_path = "/tmp/wayland-moon-resize-" + @sys.getpid().to_string() + ".sock" let comp = @host.MoonPlasmaCompositor::new(socket_path, @scene.ThemeTokens::moon_night(), 1280, 720).unwrap() let before = comp.compose_frame() assert_eq((before.width, before.height), (1280, 720)) comp.resize(900, 560) let after = comp.compose_frame() assert_eq((after.width, after.height), (900, 560)) assert_eq((comp.output_w, comp.output_h), (900, 560)) assert_eq(comp.work_area.h, 560 - 32 - comp.theme.panel_height) assert_eq(comp.server.output_w, 900) comp.close() }