mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
tree-wide: rename seat->seat to seat->wlr_seat for clarity
As we use "seat" to refer to the labwc struct, this makes it clearer at a quick glance which code is using the wlr struct instead.
This commit is contained in:
parent
4f72e6775e
commit
a2e0de7676
16 changed files with 106 additions and 106 deletions
|
|
@ -49,13 +49,13 @@ set_or_offer_focus(struct view *view)
|
|||
struct seat *seat = &server.seat;
|
||||
switch (view_wants_focus(view)) {
|
||||
case VIEW_WANTS_FOCUS_ALWAYS:
|
||||
if (view->surface != seat->seat->keyboard_state.focused_surface) {
|
||||
if (view->surface != seat->wlr_seat->keyboard_state.focused_surface) {
|
||||
seat_focus_surface(seat, view->surface);
|
||||
}
|
||||
break;
|
||||
case VIEW_WANTS_FOCUS_LIKELY:
|
||||
case VIEW_WANTS_FOCUS_UNLIKELY:
|
||||
if (view->surface != seat->seat->keyboard_state.focused_surface) {
|
||||
if (view->surface != seat->wlr_seat->keyboard_state.focused_surface) {
|
||||
view_offer_focus(view);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue