Skip to content

Commit 32125e8

Browse files
committed
add xwayland support for window socket info
currently always false, as i don't have xwayland support yet.
1 parent e37c60e commit 32125e8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

mayland-comm/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,9 @@ pub struct Window {
325325
pub workspace: usize,
326326
/// if the window is currently focussed
327327
pub active: bool,
328+
329+
/// if the window is running under xwayland
330+
pub xwayland: bool,
328331
}
329332

330333
mod window {
@@ -348,6 +351,7 @@ mod window {
348351

349352
writeln!(f, " workspace: {}", self.workspace)?;
350353
writeln!(f, " active: {}", self.active)?;
354+
writeln!(f, " xwayland: {}", self.xwayland)?;
351355

352356
Ok(())
353357
}

src/shell/window.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,8 @@ impl MappedWindow {
464464

465465
workspace: workspace.idx,
466466
active,
467+
468+
xwayland: false,
467469
}
468470
}),
469471
}

0 commit comments

Comments
 (0)