Diff
diff --git a/src/layout/normie.rs b/src/layout/normie.rs
index a7fd756..1dc3205 100644
--- a/src/layout/normie.rs
+++ b/src/layout/normie.rs
@@ -3,6 +3,7 @@ use x11rb::protocol::xproto::Window;
pub struct NormieLayout;
+// This layout should return a no-op similar to DWM.C's "null" mode.
impl Layout for NormieLayout {
fn name(&self) -> &'static str {
super::NORMIE
@@ -15,19 +16,15 @@ impl Layout for NormieLayout {
screen_height: u32,
_gaps: &GapConfig,
) -> Vec<WindowGeometry> {
- // Floating layout: all windows open centered with a reasonable default size
- // This mimics dwm's NULL layout behavior where windows float freely
const DEFAULT_WIDTH_RATIO: f32 = 0.6;
const DEFAULT_HEIGHT_RATIO: f32 = 0.6;
windows
.iter()
.map(|_| {
- // Calculate default window dimensions (60% of screen)
let width = ((screen_width as f32) * DEFAULT_WIDTH_RATIO) as u32;
let height = ((screen_height as f32) * DEFAULT_HEIGHT_RATIO) as u32;
- // Center the window on the screen
let x = ((screen_width - width) / 2) as i32;
let y = ((screen_height - height) / 2) as i32;