mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
seat: remove seat_focused_surface()
This commit is contained in:
parent
7eb33334d2
commit
8e2b3ea89a
5 changed files with 6 additions and 12 deletions
|
|
@ -134,7 +134,8 @@ render_decorations(struct wlr_output *output, struct view *view)
|
|||
draw_rect(&ddata, deco_box(view, LAB_DECO_PART_LEFT));
|
||||
|
||||
/* title */
|
||||
if (view->surface == seat_focused_surface())
|
||||
struct wlr_seat *seat = view->server->seat.seat;
|
||||
if (view->surface == seat->keyboard_state.focused_surface)
|
||||
ddata.rgba = theme.window_active_title_bg_color;
|
||||
else
|
||||
ddata.rgba = theme.window_inactive_title_bg_color;
|
||||
|
|
@ -152,7 +153,7 @@ render_decorations(struct wlr_output *output, struct view *view)
|
|||
}
|
||||
|
||||
/* buttons */
|
||||
if (view->surface == seat_focused_surface()) {
|
||||
if (view->surface == seat->keyboard_state.focused_surface) {
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_CLOSE),
|
||||
theme.xbm_close_active_unpressed);
|
||||
render_icon(&ddata, deco_box(view, LAB_DECO_BUTTON_MAXIMIZE),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue