window-management: allow moving/resizing popups
This commit is contained in:
parent
8d5ac9a2b7
commit
15e6ab2b8a
7 changed files with 268 additions and 38 deletions
10
src/tree.rs
10
src/tree.rs
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue