mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-02 06:46:29 -04:00
fix: prevent client focus loss on touch interaction with layer surfaces
This commit is contained in:
parent
23cfc323be
commit
47c5adfb37
1 changed files with 1 additions and 1 deletions
|
|
@ -5908,7 +5908,7 @@ void touchdown(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
/* Find the client under the pointer and send the event along. */
|
/* Find the client under the pointer and send the event along. */
|
||||||
xytonode(lx, ly, &surface, &c, NULL, &sx, &sy);
|
xytonode(lx, ly, &surface, &c, NULL, &sx, &sy);
|
||||||
if (sloppyfocus)
|
if (sloppyfocus && c)
|
||||||
focusclient(c, 0);
|
focusclient(c, 0);
|
||||||
|
|
||||||
if (surface != NULL) {
|
if (surface != NULL) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue