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

@ -601,6 +601,7 @@ impl Node for XdgToplevel {
match usecase {
FindTreeUsecase::None => {}
FindTreeUsecase::SelectToplevel => return FindTreeResult::AcceptsInput,
FindTreeUsecase::SelectToplevelOrPopup => return FindTreeResult::AcceptsInput,
FindTreeUsecase::SelectWorkspace => return FindTreeResult::Other,
}
self.xdg.find_tree_at(x, y, tree)
@ -832,3 +833,11 @@ pub enum XdgToplevelError {
NonNegative,
}
efrom!(XdgToplevelError, ClientError);
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct ResizeEdges {
pub top: bool,
pub left: bool,
pub right: bool,
pub bottom: bool,
}