Merge branch 'noworkarea'

This commit is contained in:
Michael Stapelberg 2011-11-30 20:34:49 +00:00
commit 70e6ba1d0b
5 changed files with 4 additions and 15 deletions

View File

@ -28,16 +28,6 @@ void ewmh_update_current_desktop();
*/ */
void ewmh_update_active_window(xcb_window_t window); void ewmh_update_active_window(xcb_window_t window);
/**
* Updates the workarea for each desktop.
*
* EWMH: Contains a geometry for each desktop. These geometries specify an area
* that is completely contained within the viewport. Work area SHOULD be used by
* desktop applications to place desktop icons appropriately.
*
*/
void ewmh_update_workarea();
/** /**
* Updates the _NET_CLIENT_LIST_STACKING hint. Necessary to move tabs in * Updates the _NET_CLIENT_LIST_STACKING hint. Necessary to move tabs in
* Chromium correctly. * Chromium correctly.

View File

@ -1066,7 +1066,6 @@ static void con_on_remove_child(Con *con) {
LOG("Closing old workspace (%p / %s), it is empty\n", con, con->name); LOG("Closing old workspace (%p / %s), it is empty\n", con, con->name);
tree_close(con, DONT_KILL_WINDOW, false, false); tree_close(con, DONT_KILL_WINDOW, false, false);
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"empty\"}"); ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"empty\"}");
ewmh_update_workarea();
} }
return; return;
} }

View File

@ -50,6 +50,10 @@ void ewmh_update_active_window(xcb_window_t window) {
/* /*
* Updates the workarea for each desktop. * Updates the workarea for each desktop.
* *
* This function is not called at the moment due to:
* http://bugs.i3wm.org/539
* http://bugs.i3wm.org/301
*
* EWMH: Contains a geometry for each desktop. These geometries specify an area * EWMH: Contains a geometry for each desktop. These geometries specify an area
* that is completely contained within the viewport. Work area SHOULD be used by * that is completely contained within the viewport. Work area SHOULD be used by
* desktop applications to place desktop icons appropriately. * desktop applications to place desktop icons appropriately.

View File

@ -808,8 +808,6 @@ void randr_query_outputs() {
disable_randr(conn); disable_randr(conn);
} }
ewmh_update_workarea();
/* Just go through each active output and assign one workspace */ /* Just go through each active output and assign one workspace */
TAILQ_FOREACH(output, &outputs, outputs) { TAILQ_FOREACH(output, &outputs, outputs) {
if (!output->active) if (!output->active)

View File

@ -240,8 +240,6 @@ static void _workspace_show(Con *workspace, bool changed_num_workspaces) {
} }
/* Update the EWMH hints */ /* Update the EWMH hints */
if (changed_num_workspaces)
ewmh_update_workarea();
ewmh_update_current_desktop(); ewmh_update_current_desktop();
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"focus\"}"); ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"focus\"}");