Don’t set the _NET_WM_WORKAREA hint at all (Thanks cg)

Fixes: #539
next
Michael Stapelberg 2011-11-30 20:33:07 +00:00
parent 5cfea9fad5
commit d25e77ce75
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);
/**
* 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
* 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);
tree_close(con, DONT_KILL_WINDOW, false, false);
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"empty\"}");
ewmh_update_workarea();
}
return;
}

View File

@ -50,6 +50,10 @@ void ewmh_update_active_window(xcb_window_t window) {
/*
* 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
* that is completely contained within the viewport. Work area SHOULD be used by
* desktop applications to place desktop icons appropriately.

View File

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

View File

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