mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-22 21:44:19 +02:00
Fix potential use after free
Ensure that the focus is changed when calling seat_set_focus.
This commit is contained in:
parent
a33864f85f
commit
8925bf0d3a
1 changed files with 0 additions and 4 deletions
4
seat.c
4
seat.c
|
|
@ -966,10 +966,6 @@ seat_set_focus(struct cg_seat *seat, struct cg_view *view) {
|
|||
}
|
||||
}
|
||||
|
||||
if(seat->seat->keyboard_state.focused_surface == view->wlr_surface) {
|
||||
return;
|
||||
}
|
||||
|
||||
#if CG_HAS_XWAYLAND
|
||||
if(view->type == CG_XWAYLAND_VIEW && !xwayland_view_should_manage(view)) {
|
||||
const struct cg_xwayland_view *xwayland_view =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue