Skip to content

Commit

Permalink
make MonitorID an Option in Workspace and Client datastructs
Browse files Browse the repository at this point in the history
  • Loading branch information
zjeffer committed Jan 12, 2025
1 parent c07d326 commit 9e7d409
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/data/regular.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ pub struct Workspace {
pub name: String,
/// The monitor the workspace is on
pub monitor: String,
/// The monitor id the workspace is on
/// The monitor id the workspace is on, can be None in some cases
#[serde(rename = "monitorID")]
pub monitor_id: MonitorId,
pub monitor_id: Option<MonitorId>,
/// The amount of windows in the workspace
pub windows: u16,
/// A bool that shows if there is a fullscreen window in the workspace
Expand Down Expand Up @@ -234,8 +234,8 @@ pub struct Client {
/// The client fullscreen mode
#[serde(rename = "fullscreenClient")]
pub fullscreen_client: FullscreenMode,
/// The monitor id the window is on
pub monitor: MonitorId,
/// The monitor id the window is on, can be None in some cases
pub monitor: Option<MonitorId>,
/// The initial window class
#[serde(rename = "initialClass")]
pub initial_class: String,
Expand Down

0 comments on commit 9e7d409

Please sign in to comment.