From: Dana Jansens Date: Tue, 28 May 2002 11:55:43 +0000 (+0000) Subject: disable the current workspace in the send-to menu X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8eb930551c33ac47e7b39adf95bd4c2e3cb87b1a;p=chaz%2Fopenbox disable the current workspace in the send-to menu --- diff --git a/src/Windowmenu.cc b/src/Windowmenu.cc index 7de61dbd..089cce57 100644 --- a/src/Windowmenu.cc +++ b/src/Windowmenu.cc @@ -193,6 +193,7 @@ void Windowmenu::SendtoWorkspacemenu::update(void) { } else { changeItemLabel(i, getScreen()->getWorkspace(i)->getName()); } + setItemEnabled(i, i != getScreen()->getCurrentWorkspaceID()); } Basemenu::update();