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
|
|
@ -1,11 +0,0 @@
|
|||
use crate::rect::Rect;
|
||||
|
||||
pub trait TestRectExt {
|
||||
fn center(&self) -> (i32, i32);
|
||||
}
|
||||
|
||||
impl TestRectExt for Rect {
|
||||
fn center(&self) -> (i32, i32) {
|
||||
((self.x1() + self.x2()) / 2, (self.y1() + self.y2()) / 2)
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{it::test_utils::test_rect_ext::TestRectExt, tree::ToplevelNode};
|
||||
use crate::tree::ToplevelNode;
|
||||
|
||||
pub trait TestToplevelNodeExt {
|
||||
fn center(&self) -> (i32, i32);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue