Don't try to activate an active desktop

Fixes #844.
This commit is contained in:
Bastien Dejean 2018-09-09 18:03:10 +02:00
parent fcb53ac711
commit 8573b269a5

View file

@ -70,7 +70,7 @@ bool activate_desktop(monitor_t *m, desktop_t *d)
}
}
if (d == NULL) {
if (d == NULL || d == m->desk) {
return false;
}