Don't allow deiconifying locked windows via the focus action.
[mikachu/openbox.git] / openbox / actions / focus.c
index 4d0f220..83b3e01 100644 (file)
@@ -43,9 +43,11 @@ static gboolean run_func(ObActionsData *data, gpointer options)
             (data->context != OB_FRAME_CONTEXT_CLIENT &&
              data->context != OB_FRAME_CONTEXT_FRAME))
         {
-            actions_client_move(data, TRUE);
-            client_activate(data->client, o->here, FALSE, FALSE, TRUE);
-            actions_client_move(data, FALSE);
+            if (!(data->client->iconic && actions_client_locked(data))) {
+                actions_client_move(data, TRUE);
+                client_activate(data->client, o->here, FALSE, FALSE, TRUE);
+                actions_client_move(data, FALSE);
+            }
         }
     } else if (data->context == OB_FRAME_CONTEXT_DESKTOP) {
         /* focus action on the root window. make keybindings work for this