Rename DeviceEventFilter to DeviceEvents
The use of `Filter` was confusing so it was removed inverting the behavior of the enum and methods using it. Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
This commit is contained in:
parent
de5327477a
commit
8bb004a1d9
9 changed files with 43 additions and 51 deletions
|
|
@ -813,7 +813,7 @@ impl<T: 'static> EventProcessor<T> {
|
|||
if self.active_window != Some(xev.event) {
|
||||
self.active_window = Some(xev.event);
|
||||
|
||||
wt.update_device_event_filter(true);
|
||||
wt.update_listen_device_events(true);
|
||||
|
||||
let window_id = mkwid(xev.event);
|
||||
let position = PhysicalPosition::new(xev.event_x, xev.event_y);
|
||||
|
|
@ -877,7 +877,7 @@ impl<T: 'static> EventProcessor<T> {
|
|||
if self.active_window.take() == Some(xev.event) {
|
||||
let window_id = mkwid(xev.event);
|
||||
|
||||
wt.update_device_event_filter(false);
|
||||
wt.update_listen_device_events(false);
|
||||
|
||||
// Issue key release events for all pressed keys
|
||||
Self::handle_pressed_keys(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue