57 lines
2.3 KiB
Diff
57 lines
2.3 KiB
Diff
--- a/src/workspace.c 2018-03-10 18:29:14.000000000 +0100
|
|
+++ b/src/workspace.c 2018-06-11 15:15:43.572214113 +0200
|
|
@@ -446,29 +446,30 @@
|
|
* way for con_focus() to know about when to clear urgency immediately and
|
|
* when to defer it. */
|
|
if (old && TAILQ_EMPTY(&(old->nodes_head)) && TAILQ_EMPTY(&(old->floating_head))) {
|
|
- /* check if this workspace is currently visible */
|
|
- if (!workspace_is_visible(old)) {
|
|
- LOG("Closing old workspace (%p / %s), it is empty\n", old, old->name);
|
|
- yajl_gen gen = ipc_marshal_workspace_event("empty", old, NULL);
|
|
- tree_close_internal(old, DONT_KILL_WINDOW, false, false);
|
|
-
|
|
- const unsigned char *payload;
|
|
- ylength length;
|
|
- y(get_buf, &payload, &length);
|
|
- ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, (const char *)payload);
|
|
-
|
|
- y(free);
|
|
-
|
|
- /* Avoid calling output_push_sticky_windows later with a freed container. */
|
|
- if (old == old_focus) {
|
|
- old_focus = NULL;
|
|
- }
|
|
-
|
|
- ewmh_update_number_of_desktops();
|
|
- ewmh_update_desktop_names();
|
|
- ewmh_update_desktop_viewport();
|
|
- ewmh_update_wm_desktop();
|
|
- }
|
|
+ /* check if this workspace is currently visible
|
|
+ *if (!workspace_is_visible(old)) {
|
|
+ * LOG("Closing old workspace (%p / %s), it is empty\n", old, old->name);
|
|
+ * yajl_gen gen = ipc_marshal_workspace_event("empty", old, NULL);
|
|
+ * tree_close_internal(old, DONT_KILL_WINDOW, false, false);
|
|
+ *
|
|
+ * const unsigned char *payload;
|
|
+ * ylength length;
|
|
+ * y(get_buf, &payload, &length);
|
|
+ * ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, (const char *)payload);
|
|
+ *
|
|
+ * y(free);
|
|
+ *
|
|
+ * Avoid calling output_push_sticky_windows later with a freed container.
|
|
+ * if (old == old_focus) {
|
|
+ * old_focus = NULL;
|
|
+ * }
|
|
+ *
|
|
+ * ewmh_update_number_of_desktops();
|
|
+ * ewmh_update_desktop_names();
|
|
+ * ewmh_update_desktop_viewport();
|
|
+ * ewmh_update_wm_desktop();
|
|
+ *}
|
|
+ */
|
|
}
|
|
|
|
workspace->fullscreen_mode = CF_OUTPUT;
|