Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ impl render::DragResizeHandler for Controller {
// end was missed (cancelled), so nothing gets stuck lifted or capturing.
if let Some(prev) = self.lifted_surface.take() {
if let Some(surf) = self.manager.surfaces().get(prev) {
surf.window.set_layer(ShellLayer::Background);
surf.window.set_layer(ShellLayer::Bottom);
}
}
if let Some(prev) = self.drag_input_surface.take() {
Expand Down Expand Up @@ -1384,7 +1384,7 @@ impl render::DragResizeHandler for Controller {
// Undo the Overlay lift (Desktop only).
if let Some(idx) = self.lifted_surface.take() {
if let Some(surf) = self.manager.surfaces().get(idx) {
surf.window.set_layer(ShellLayer::Background);
surf.window.set_layer(ShellLayer::Bottom);
}
}
// Restore the precise note-union input region for whatever surface got the
Expand Down
2 changes: 1 addition & 1 deletion src/platform/surfaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ impl SurfaceLayer {
fn to_layer(self) -> Layer {
match self {
SurfaceLayer::Front => Layer::Top,
SurfaceLayer::Desktop => Layer::Background,
SurfaceLayer::Desktop => Layer::Bottom,
}
}
}
Expand Down