mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-10 05:34:05 -04:00
opt: avoid pointer focus disable scene node
This commit is contained in:
parent
4eb01efad5
commit
52de273474
1 changed files with 3 additions and 2 deletions
|
|
@ -1925,7 +1925,8 @@ buttonpress(struct wl_listener *listener, void *data) {
|
|||
|
||||
xytonode(cursor->x, cursor->y, &surface, NULL, NULL, NULL, NULL);
|
||||
if (toplevel_from_wlr_surface(surface, &c, &l) >= 0) {
|
||||
if (c && (!client_is_unmanaged(c) || client_wants_focus(c)))
|
||||
if (c && c->scene->node.enabled &&
|
||||
(!client_is_unmanaged(c) || client_wants_focus(c)))
|
||||
focusclient(c, 1);
|
||||
|
||||
if (surface != old_pointer_focus_surface) {
|
||||
|
|
@ -4113,7 +4114,7 @@ void pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
|
|||
struct timespec now;
|
||||
|
||||
if (surface != seat->pointer_state.focused_surface && sloppyfocus && time &&
|
||||
c && !client_is_unmanaged(c))
|
||||
c && c->scene->node.enabled && !client_is_unmanaged(c))
|
||||
focusclient(c, 0);
|
||||
|
||||
/* If surface is NULL, clear pointer focus */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue