refactor: change PopupSurface args to PopupKind of position_popup_within_rect() paths
- to support InputMethod popup kind in later commit
This commit is contained in:
parent
f62c88a3d9
commit
7a10fb1cc8
3 changed files with 45 additions and 33 deletions
|
|
@ -40,7 +40,10 @@ impl WlrLayerShellHandler for State {
|
|||
}
|
||||
|
||||
fn new_popup(&mut self, _parent: WlrLayerSurface, popup: PopupSurface) {
|
||||
self.common.shell.read().unconstrain_popup(&popup);
|
||||
self.common
|
||||
.shell
|
||||
.read()
|
||||
.unconstrain_popup(&PopupKind::from(popup.clone()));
|
||||
|
||||
if let Err(err) = popup.send_configure() {
|
||||
tracing::warn!("Unable to configure popup. {err:?}",);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue