Bugfix: Fix clone mode with new RandR code (Thanks Merovius)

This commit is contained in:
Michael Stapelberg
2010-03-05 14:32:48 +01:00
parent d73f1748db
commit 718d62a3cd
3 changed files with 65 additions and 26 deletions

View File

@ -207,6 +207,7 @@ void workspace_show(xcb_connection_t *conn, int workspace) {
void workspace_assign_to(Workspace *ws, Output *output) {
Client *client;
bool empty = true;
bool visible = workspace_is_visible(ws);
ws->output = output;
@ -228,14 +229,14 @@ void workspace_assign_to(Workspace *ws, Output *output) {
render_workspace(global_conn, output, ws);
/* …unless we want to see them at the moment, we should hide that workspace */
if (workspace_is_visible(ws))
if (visible)
return;
workspace_unmap_clients(global_conn, ws);
if (c_ws == ws) {
DLOG("Need to adjust c_ws...\n");
c_ws = output->current_workspace;
DLOG("Need to adjust output->current_workspace...\n");
output->current_workspace = c_ws;
}
}