Skip to content

Commit

Permalink
Update smithay to the latest git
Browse files Browse the repository at this point in the history
This fixes IME handling.
  • Loading branch information
kchibisov committed Oct 17, 2023
1 parent 58f6b30 commit a5fab00
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ xcursor = "0.3.4"
zbus = { version = "3.14.1", optional = true }

[dependencies.smithay]
git = "https://github.com/Smithay/smithay.git"
git = "https://github.com/kchibisov/smithay.git"
branch = "fix-ime-popup"
# path = "../smithay"
default-features = false
features = [
Expand All @@ -55,7 +56,8 @@ features = [
]

[dependencies.smithay-drm-extras]
git = "https://github.com/Smithay/smithay.git"
git = "https://github.com/kchibisov/smithay.git"
branch = "fix-ime-popup"
# path = "../smithay/smithay-drm-extras"

[dev-dependencies]
Expand Down
7 changes: 6 additions & 1 deletion src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::thread;

use smithay::backend::allocator::dmabuf::Dmabuf;
use smithay::backend::renderer::ImportDma;
use smithay::desktop::PopupKind;
use smithay::desktop::{PopupKind, PopupManager};
use smithay::input::pointer::CursorImageStatus;
use smithay::input::{Seat, SeatHandler, SeatState};
use smithay::reexports::wayland_server::protocol::wl_data_source::WlDataSource;
Expand Down Expand Up @@ -69,6 +69,11 @@ impl InputMethodHandler for State {
warn!("error tracking ime popup {err:?}");
}
}
fn dismiss_popup(&mut self, surface: PopupSurface) {
if let Some(parent) = surface.get_parent().map(|parent| parent.surface.clone()) {
let _ = PopupManager::dismiss_popup(&parent, &PopupKind::from(surface));
}
}
fn parent_geometry(&self, parent: &WlSurface) -> Rectangle<i32, Logical> {
self.niri
.layout
Expand Down

0 comments on commit a5fab00

Please sign in to comment.