I don't expect any pieces to exist that can both be active occulter,
and multigrab. But if it does it should probably do the thing, rather
than mysteriously not work. And this simplifies the code.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
if self.occult.is_active() { false }
else { self.rotateable }
}
- pub fn multigrab(&self, ipc: &IPiece) -> bool {
- if self.occult.is_active() { false }
- else { ipc.special.multigrab }
- }
pub fn dummy() -> Self {
let gen_dummy = Generation(1);
angle : pri.angle(gpc).to_compass(),
pinned : gpc.pinned,
rotateable : gpc.rotateable(),
- multigrab : gpc.multigrab(ipc),
+ multigrab : ipc.special.multigrab,
uos : pri.ui_operations(gs, gpc, ipc)?,
moveable : gpc.moveable(),
facehint : pri.facehint(gpc),