fix: fixed focusable not working
This commit is contained in:
@@ -5,6 +5,12 @@ All notable changes to `ewwii` are documented here.
|
||||
This changelog follows the [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format,
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/).
|
||||
|
||||
## [UNRELEASED]
|
||||
|
||||
### Fixed
|
||||
|
||||
- `focusable` property not working issue.
|
||||
|
||||
## [0.3.0-alpha] - 2025-10-04
|
||||
|
||||
### Added
|
||||
|
||||
@@ -72,13 +72,6 @@ mod platform_wayland {
|
||||
let window = Window::new();
|
||||
// window.move_(x, y);
|
||||
|
||||
// Sets the keyboard interactivity
|
||||
match window_init.backend_options.wayland.focusable {
|
||||
WlWindowFocusable::None => window.set_keyboard_mode(KeyboardMode::None),
|
||||
WlWindowFocusable::Exclusive => window.set_keyboard_mode(KeyboardMode::Exclusive),
|
||||
WlWindowFocusable::OnDemand => window.set_keyboard_mode(KeyboardMode::OnDemand),
|
||||
}
|
||||
|
||||
window.set_resizable(window_init.resizable);
|
||||
|
||||
if !window_init.backend_options.wayland.force_normal {
|
||||
@@ -157,6 +150,13 @@ mod platform_wayland {
|
||||
}
|
||||
}
|
||||
|
||||
// Sets the keyboard interactivity
|
||||
match window_init.backend_options.wayland.focusable {
|
||||
WlWindowFocusable::None => window.set_keyboard_mode(KeyboardMode::None),
|
||||
WlWindowFocusable::Exclusive => window.set_keyboard_mode(KeyboardMode::Exclusive),
|
||||
WlWindowFocusable::OnDemand => window.set_keyboard_mode(KeyboardMode::OnDemand),
|
||||
}
|
||||
|
||||
Some(window)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user