}
else {
ObClient *t = self->data.normal.data;
- if (t) { /* it's set to NULL if its destroyed */
+ if (t && !t->locked) { /* it's set to NULL if its destroyed */
client_activate(t, FALSE, TRUE, TRUE, TRUE);
/* if the window is omnipresent then we need to go to its
desktop */
ObClient *c, guint state, gpointer data)
{
ObClient *t = self->data.normal.data;
- if (t) { /* it's set to NULL if its destroyed */
+ if (t && !t->locked) { /* it's set to NULL if its destroyed */
client_activate(t, FALSE, TRUE, TRUE, TRUE);
/* if the window is omnipresent then we need to go to its
desktop */