refactor: make get_popup_toplevel() PopupKind agnostic
- for preparation to make unconstrain_popup() PopupKind agnostic.
This commit is contained in:
parent
b5a1a6d317
commit
977d4c2dca
5 changed files with 11 additions and 8 deletions
|
|
@ -1278,7 +1278,7 @@ impl FloatingLayout {
|
|||
let Some(focused) = (match target {
|
||||
KeyboardFocusTarget::Popup(popup) => {
|
||||
let Some(toplevel_surface) = (match popup {
|
||||
PopupKind::Xdg(xdg) => get_popup_toplevel(&xdg),
|
||||
PopupKind::Xdg(_) => get_popup_toplevel(&popup),
|
||||
PopupKind::InputMethod(_) => unreachable!(),
|
||||
}) else {
|
||||
return MoveResult::None;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue