ewmh: correctly set _NET_CURRENT_DESKTOP to the number of the active workspace

This commit is contained in:
Michael Stapelberg
2009-12-25 15:05:17 +01:00
parent ba82a3e63b
commit 0641e6a1a3
6 changed files with 62 additions and 2 deletions

View File

@ -32,6 +32,7 @@
#include "xcb.h"
#include "client.h"
#include "log.h"
#include "ewmh.h"
static iconv_t conversion_descriptor = 0;
struct keyvalue_table_head by_parent = TAILQ_HEAD_INITIALIZER(by_parent);
@ -230,6 +231,7 @@ void set_focus(xcb_connection_t *conn, Client *client, bool set_anyways) {
c_ws->current_row = current_row;
c_ws->current_col = current_col;
c_ws = client->workspace;
ewmh_update_current_desktop();
/* Load current_col/current_row if we switch to a client without a container */
current_col = c_ws->current_col;
current_row = c_ws->current_row;