1
0
Fork 0
forked from wry/wry

window-management: allow moving/resizing popups

This commit is contained in:
Julian Orth 2025-12-16 20:29:45 +01:00
parent 8d5ac9a2b7
commit 15e6ab2b8a
7 changed files with 268 additions and 38 deletions

View file

@ -13,7 +13,10 @@ use {
},
wl_pointer::PendingScroll,
},
wl_surface::{WlSurface, tray::TrayItemId, zwlr_layer_surface_v1::ZwlrLayerSurfaceV1},
wl_surface::{
WlSurface, tray::TrayItemId, xdg_surface::xdg_popup::XdgPopup,
zwlr_layer_surface_v1::ZwlrLayerSurfaceV1,
},
},
keyboard::KeyboardState,
rect::Rect,
@ -113,6 +116,7 @@ impl FindTreeResult {
pub enum FindTreeUsecase {
None,
SelectToplevel,
SelectToplevelOrPopup,
SelectWorkspace,
}
@ -642,6 +646,10 @@ pub trait Node: 'static {
None
}
fn node_into_popup(self: Rc<Self>) -> Option<Rc<XdgPopup>> {
None
}
// TYPE CHECKERS
fn node_is_container(&self) -> bool {