mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-06-24 08:02:41 +00:00
Compare commits
1 Commits
41be906af3
..
0.7
| Author | SHA1 | Date | |
|---|---|---|---|
| d5bbe6d54d |
@@ -716,6 +716,8 @@ cleanupmon(struct wl_listener *listener, void *data)
|
|||||||
wl_list_remove(&m->frame.link);
|
wl_list_remove(&m->frame.link);
|
||||||
wl_list_remove(&m->link);
|
wl_list_remove(&m->link);
|
||||||
wl_list_remove(&m->request_state.link);
|
wl_list_remove(&m->request_state.link);
|
||||||
|
if (m->lock_surface)
|
||||||
|
destroylocksurface(&m->destroy_lock_surface, NULL);
|
||||||
m->wlr_output->data = NULL;
|
m->wlr_output->data = NULL;
|
||||||
wlr_output_layout_remove(output_layout, m->wlr_output);
|
wlr_output_layout_remove(output_layout, m->wlr_output);
|
||||||
wlr_scene_output_destroy(m->scene_output);
|
wlr_scene_output_destroy(m->scene_output);
|
||||||
@@ -1591,7 +1593,6 @@ keypress(struct wl_listener *listener, void *data)
|
|||||||
|
|
||||||
int handled = 0;
|
int handled = 0;
|
||||||
uint32_t mods = wlr_keyboard_get_modifiers(&group->wlr_group->keyboard);
|
uint32_t mods = wlr_keyboard_get_modifiers(&group->wlr_group->keyboard);
|
||||||
static bool consumed[KEY_MAX + 1];
|
|
||||||
|
|
||||||
wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);
|
wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);
|
||||||
|
|
||||||
@@ -1613,16 +1614,9 @@ keypress(struct wl_listener *listener, void *data)
|
|||||||
wl_event_source_timer_update(group->key_repeat_source, 0);
|
wl_event_source_timer_update(group->key_repeat_source, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handled) {
|
if (handled)
|
||||||
consumed[event->keycode] = true;
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
if (consumed[event->keycode]) {
|
|
||||||
if (event->state == WL_KEYBOARD_KEY_STATE_RELEASED)
|
|
||||||
consumed[event->keycode] = false;
|
|
||||||
return; // don't pass to the client the release event of a handled key-press
|
|
||||||
}
|
|
||||||
wlr_seat_set_keyboard(seat, &group->wlr_group->keyboard);
|
wlr_seat_set_keyboard(seat, &group->wlr_group->keyboard);
|
||||||
/* Pass unhandled keycodes along to the client. */
|
/* Pass unhandled keycodes along to the client. */
|
||||||
wlr_seat_keyboard_notify_key(seat, event->time_msec,
|
wlr_seat_keyboard_notify_key(seat, event->time_msec,
|
||||||
|
|||||||
Reference in New Issue
Block a user