mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
get old client by surface's node
This commit is contained in:
parent
79f85bde99
commit
f1c92b05fb
1 changed files with 5 additions and 10 deletions
15
dwl.c
15
dwl.c
|
@ -1076,7 +1076,6 @@ focusclient(Client *c, int lift)
|
||||||
{
|
{
|
||||||
struct wlr_surface *old = seat->keyboard_state.focused_surface;
|
struct wlr_surface *old = seat->keyboard_state.focused_surface;
|
||||||
struct wlr_keyboard *kb;
|
struct wlr_keyboard *kb;
|
||||||
Client *w;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Raise client in stacking order if requested */
|
/* Raise client in stacking order if requested */
|
||||||
|
@ -1114,15 +1113,11 @@ focusclient(Client *c, int lift)
|
||||||
))
|
))
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
#ifdef XWAYLAND
|
Client *w;
|
||||||
if (wlr_surface_is_xwayland_surface(old))
|
struct wlr_scene_node *node = old->data;
|
||||||
w = wlr_xwayland_surface_from_wlr_surface(old)->data;
|
if ((w = node->data))
|
||||||
else
|
for (i = 0; i < 4; i++)
|
||||||
#endif
|
wlr_scene_rect_set_color(w->border[i], bordercolor);
|
||||||
w = wlr_xdg_surface_from_wlr_surface(old)->data;
|
|
||||||
|
|
||||||
for (i = 0; i < 4; i++)
|
|
||||||
wlr_scene_rect_set_color(w->border[i], bordercolor);
|
|
||||||
|
|
||||||
client_activate_surface(old, 0);
|
client_activate_surface(old, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue