chiark / gitweb /
Multigrab: Provide in initial load
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 18 Apr 2022 15:22:05 +0000 (16:22 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 18 Apr 2022 15:22:05 +0000 (16:22 +0100)
This was broken by the special refactoring.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/session.rs

index b2970813de55f4157ffc84ff0b2b3d5828f9c513..0d41792c57f82fa25c0f40b73f6759c2d31676d9 100644 (file)
@@ -53,6 +53,7 @@ struct SessionPieceLoadJson<'r> {
   moveable: PieceMoveable,
   cseq_loose: Option<Generation>,
   rotateable: bool,
+  multigrab: bool,
   occregion: Option<JsonString<&'r Region>>,
   pub bbox: &'r Rect,
 }
@@ -159,6 +160,7 @@ fn session_inner(form: Json<SessionForm>,
         desc,
         bbox: &bbox,
         moveable: gpc.moveable(),
+        multigrab: ipc.special.multigrab,
         cseq_loose: None,
         rotateable: gpc.rotateable(),
         uos: &pri.ui_operations(&ig.gs, gpc, ipc)?,