just a little clean up

This commit is contained in:
rathnor 2003-05-11 11:47:19 +00:00
parent 3a75379606
commit 816190411a

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
// $Id: Screen.cc,v 1.152 2003/05/10 22:52:44 fluxgen Exp $ // $Id: Screen.cc,v 1.153 2003/05/11 11:47:19 rathnor Exp $
#include "Screen.hh" #include "Screen.hh"
@ -1049,10 +1049,10 @@ int BScreen::removeLastWorkspace() {
void BScreen::changeWorkspaceID(unsigned int id) { void BScreen::changeWorkspaceID(unsigned int id) {
if (! current_workspace || id >= workspacesList.size()) if (! current_workspace || id >= workspacesList.size() ||
id == current_workspace->workspaceID())
return; return;
if (id != current_workspace->workspaceID()) {
XSync(FbTk::App::instance()->display(), true); XSync(FbTk::App::instance()->display(), true);
FluxboxWindow *focused = Fluxbox::instance()->getFocusedWindow(); FluxboxWindow *focused = Fluxbox::instance()->getFocusedWindow();
#ifdef DEBUG #ifdef DEBUG
@ -1097,7 +1097,6 @@ void BScreen::changeWorkspaceID(unsigned int id) {
if (focused && focused->isMoving()) { if (focused && focused->isMoving()) {
focused->resumeMoving(); focused->resumeMoving();
} }
}
updateNetizenCurrentWorkspace(); updateNetizenCurrentWorkspace();
} }