1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

Remove VIRTUAL_DESKTOP code

Even the option to enable "virtual desktop" in configure.ac was
commented out...and I would never intend to use it anyway.

So let's just remove the ~800 lines of #ifdef'ed code to have a
cleaner code base to read when bored.
This commit is contained in:
Carlos R. Mafra
2010-01-09 13:12:20 +01:00
parent 4e90a87b14
commit 72dfe4aa89
16 changed files with 17 additions and 845 deletions

View File

@@ -164,13 +164,7 @@ static void showPosition(WWindow * wwin, int x, int y)
XDrawLine(dpy, scr->root_win, lgc, x + width + 2, 0, x + width + 2, scr->scr_height);
#endif
} else {
#ifdef VIRTUAL_DESKTOP
WSetGeometryViewShownPosition(scr->gview,
x + scr->workspaces[scr->current_workspace]->view_x,
y + scr->workspaces[scr->current_workspace]->view_y);
#else
WSetGeometryViewShownPosition(scr->gview, x, y);
#endif
}
}
@@ -1532,10 +1526,6 @@ int wKeyboardMoveResizeWindow(WWindow * wwin)
wArrangeIcons(scr, True);
}
#if defined(VIRTUAL_DESKTOP)
wWorkspaceResizeViewport(scr, scr->current_workspace);
#endif
return 1;
}
}
@@ -1803,11 +1793,6 @@ int wMouseMoveWindow(WWindow * wwin, XEvent * ev)
head != wGetHeadForWindow(wwin)) {
wArrangeIcons(scr, True);
}
#if defined(VIRTUAL_DESKTOP)
if (started)
wWorkspaceResizeViewport(scr, scr->current_workspace);
#endif
return started;
}
@@ -2096,9 +2081,6 @@ void wMouseResizeWindow(WWindow * wwin, XEvent * ev)
if (wPreferences.auto_arrange_icons && wXineramaHeads(scr) > 1 && head != wGetHeadForWindow(wwin)) {
wArrangeIcons(scr, True);
}
#if defined(VIRTUAL_DESKTOP)
wWorkspaceResizeViewport(scr, scr->current_workspace);
#endif
}
#undef LEFT