git.lucas.co / cce-cloud
cloud storage client
git clone https://git.lucas.co/cce-cloud.git

commit7e2ac3bc8d5c4d9131a3ce684b0787531fe4ea6b
parent7cfae67c0c
authorLucas Galante <[email protected]>
date2026-06-24 15:51
Disable XDG/Popup mode when explicit coordinates are passed to fallback to Layer Shell overlay

 src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index 7ad51d7..54d7406 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2274,7 +2274,7 @@ fn main() {
     let scale = cce_ui::wayland::detect_scale_factor(&app.output_state);
 
     let xdg_shell_state = smithay_client_toolkit::shell::xdg::XdgShell::bind(&globals, &qh).ok();
-    let use_xdg = cce_wm.is_some() && xdg_shell_state.is_some();
+    let use_xdg = cce_wm.is_some() && xdg_shell_state.is_some() && x_pos.is_none() && y_pos.is_none();
 
     let (state, cce_toplevel) = pollster::block_on(State::new(
         &conn,