Fix demon crash when off-screen windows are created

timeout_old
Tassilo Horn 4 years ago
parent 5f573ccb71
commit 50acfc2119
  1. 5
      src/ipc.rs

@ -6,13 +6,14 @@ use serde::{Deserialize, Serialize};
pub type Id = u32;
pub type Dim = u16;
pub type Pos = i16; // Position can be off-screen, so i16 instead of u16.
pub type Pid = u32;
#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct Rect {
pub x: Dim,
pub y: Dim,
pub x: Pos,
pub y: Pos,
pub width: Dim,
pub height: Dim,
}

Loading…
Cancel
Save