tiling: Allow windows to be moved

This commit is contained in:
Victoria Brekenfeld 2022-10-27 16:11:54 +02:00
parent 0c47631d9b
commit 644d53c2da
5 changed files with 369 additions and 15 deletions

View file

@ -317,7 +317,7 @@ fn get_anchor_point(positioner: &PositionerState) -> Point<i32, Logical> {
.into()
}
fn get_popup_toplevel(popup: &PopupSurface) -> Option<WlSurface> {
pub fn get_popup_toplevel(popup: &PopupSurface) -> Option<WlSurface> {
let mut parent = popup.get_parent_surface()?;
while get_role(&parent) == Some(XDG_POPUP_ROLE) {
parent = with_states(&parent, |states| {