dont change desktop when its out of range
This commit is contained in:
parent
bcdef0b226
commit
9be1d64d36
1 changed files with 3 additions and 1 deletions
|
@ -485,6 +485,8 @@ static void event_handle_client(Client *client, XEvent *e)
|
||||||
}
|
}
|
||||||
e->xclient = ce.xclient;
|
e->xclient = ce.xclient;
|
||||||
}
|
}
|
||||||
|
if (e->xclient.data.l[0] >= 0 &&
|
||||||
|
e->xclient.data.l[0] < screen_num_desktops)
|
||||||
client_set_desktop(client, e->xclient.data.l[0]);
|
client_set_desktop(client, e->xclient.data.l[0]);
|
||||||
} else if (msgtype == prop_atoms.net_wm_state) {
|
} else if (msgtype == prop_atoms.net_wm_state) {
|
||||||
/* can't compress these */
|
/* can't compress these */
|
||||||
|
|
Loading…
Reference in a new issue