i3 - improved tiling WM


Set urgency hint on windows assigned to workspace

Patch status: needinfo

Patch by Tony Crisci

Long description:

Fixes #1088.

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

b/src/assignments.c

15
@@ -52,6 +52,10 @@ void run_assignments(i3Window *window) {
16
                 needs_tree_render = true;
17
 
18
             yajl_gen_free(command_output->json_gen);
19
+        } else if (current->type == A_TO_WORKSPACE) {
20
+            DLOG("send to workspace: %s\n", current->dest.workspace);
21
+            Con *con = con_by_window_id(window->id);
22
+            con_set_urgency(con, true);
23
         }
24
 
25
         /* Store that we ran this assignment to not execute it again */

b/src/manage.c

30
@@ -477,7 +477,8 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
31
      * known to do that), so check for that and handle the hint accordingly.
32
      * This code needs to be in this part of manage_window() because the window
33
      * needs to be on the final workspace first. */
34
-    con_set_urgency(nc, urgency_hint);
35
+    if (urgency_hint)
36
+        con_set_urgency(nc, true);
37
 
38
 geom_out:
39
     free(geom);