xwayland: set output for override redirect windows
This commit is contained in:
parent
0dc1929bbd
commit
7ff7edaa8f
7 changed files with 13 additions and 15 deletions
|
|
@ -236,4 +236,11 @@ impl Rect {
|
|||
pub fn size(&self) -> (i32, i32) {
|
||||
(self.width(), self.height())
|
||||
}
|
||||
|
||||
pub fn center(&self) -> (i32, i32) {
|
||||
(
|
||||
self.raw.x1 + self.width() / 2,
|
||||
self.raw.y1 + self.height() / 2,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue