tony / oxwm

Branch: 7b4ea87
Switch branches/tags
master
tonybtw Added layout module, and dynamic tiling layout instead of hard coded layout. Changed just file to just open xephyr, need to run xclock from a 2nd terminal. 2456898 2025-09-26
19 lines · 346 B Raw Blame History
1 pub mod tiling;
2
3 use x11rb::protocol::xproto::Window;
4
5 pub trait Layout {
6 fn arrange(
7 &self,
8 windows: &[Window],
9 screen_width: u32,
10 screen_height: u32,
11 ) -> Vec<WindowGeometry>;
12 }
13
14 pub struct WindowGeometry {
15 pub x_coordinate: i32,
16 pub y_coordinate: i32,
17 pub width: u32,
18 pub height: u32,
19 }