i3 - improved tiling WM


Fix focus issue when client requests focus in fs mode

Patch status: needinfo

Patch by jj

Long description:

When in fullscreen mode and another window sends a client request
'_NET_ACTIVE_WINDOW', i3 would stay in fullscreen mode but give focus to
the other window. This patch enforces the fullscreen constraints for
focusing.

To apply this patch, use:
curl http://cr.i3wm.org/patch/278/raw.patch | git am

b/src/handlers.c

18
@@ -676,6 +676,11 @@ static void handle_client_message(xcb_client_message_event_t *event) {
19
             return;
20
         }
21
 
22
+        if (!con_fullscreen_permits_focusing(con)) {
23
+            DLOG("Fullscreen constraints do not permit focusing of the client, ignoring _NET_ACTIVE_WINDOW\n");
24
+            return;
25
+        }
26
+
27
         Con *ws = con_get_workspace(con);
28
         if (!workspace_is_visible(ws)) {
29
             DLOG("Workspace not visible, ignoring _NET_ACTIVE_WINDOW\n");