deps: Update smithay

Fixes misbehaving floating windows
This commit is contained in:
Victoria Brekenfeld 2022-07-07 19:45:04 +02:00
parent 397ddaab1e
commit 1fb49824f9
10 changed files with 87 additions and 23 deletions

View file

@ -2,7 +2,7 @@
use crate::{state::BackendData, utils::prelude::*};
use smithay::{
backend::renderer::utils::on_commit_buffer_handler,
backend::renderer::utils::{on_commit_buffer_handler, with_renderer_surface_state},
delegate_compositor,
desktop::{layer_map_for_output, Kind, LayerSurface, PopupKind, WindowSurfaceType},
reexports::wayland_server::{protocol::wl_surface::WlSurface, DisplayHandle},
@ -178,7 +178,12 @@ impl CompositorHandler for State {
window.geometry().size,
);
if let Some(location) = new_location {
space.map_window(&window, location, true);
space.map_window(
&window,
location,
crate::shell::layout::floating::FLOATING_INDEX,
true,
);
for window in space.windows() {
update_reactive_popups(space, window);
}

View file

@ -16,7 +16,7 @@ use smithay::{
},
wayland::{
output::Output,
seat::{PointerGrabStartData, Seat},
seat::{Focus, PointerGrabStartData, Seat},
shell::xdg::{
Configure, PopupSurface, PositionerState, ToplevelSurface, XdgShellHandler,
XdgShellState,
@ -123,7 +123,7 @@ impl XdgShellHandler for State {
grab.ungrab(dh, PopupUngrabStrategy::All);
return;
}
pointer.set_grab(PopupPointerGrab::new(&grab), serial, 0);
pointer.set_grab(PopupPointerGrab::new(&grab), serial, Focus::Keep);
}
seat.user_data()