1
0
Fork 0
forked from wry/wry

xwayland: set output for override redirect windows

This commit is contained in:
Julian Orth 2024-09-11 23:58:42 +02:00
parent 0dc1929bbd
commit 7ff7edaa8f
7 changed files with 13 additions and 15 deletions

View file

@ -2,7 +2,6 @@ pub mod test_container_node_ext;
pub mod test_expected_event;
pub mod test_object_ext;
pub mod test_ouput_node_ext;
pub mod test_rect_ext;
pub mod test_surface_ext;
pub mod test_toplevel_node_ext;
pub mod test_window;

View file

@ -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)
}
}

View file

@ -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);

View file

@ -1,7 +1,7 @@
use {
crate::{
ifs::wl_seat::BTN_LEFT,
it::{test_error::TestResult, test_utils::test_rect_ext::TestRectExt, testrun::TestRun},
it::{test_error::TestResult, testrun::TestRun},
tree::Node,
},
std::rc::Rc,

View file

@ -1,6 +1,6 @@
use {
crate::{
it::{test_error::TestResult, test_utils::test_rect_ext::TestRectExt, testrun::TestRun},
it::{test_error::TestResult, testrun::TestRun},
tree::Node,
},
std::rc::Rc,