added window specific send to
This commit is contained in:
parent
a4373ada50
commit
4bc5d80ba7
1 changed files with 16 additions and 7 deletions
|
@ -21,7 +21,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: Windowmenu.cc,v 1.14 2002/05/15 09:37:27 fluxgen Exp $
|
// $Id: Windowmenu.cc,v 1.15 2002/07/23 13:49:01 fluxgen Exp $
|
||||||
|
|
||||||
//use GNU extensions
|
//use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -218,13 +218,22 @@ void Windowmenu::SendtoWorkspacemenu::itemSelected(int button, unsigned int inde
|
||||||
if (button > 2) return;
|
if (button > 2) return;
|
||||||
|
|
||||||
if (index <= windowmenu->screen->getCount()) {
|
if (index <= windowmenu->screen->getCount()) {
|
||||||
if (index == windowmenu->screen->getCurrentWorkspaceID()) return;
|
|
||||||
if (windowmenu->window->isStuck()) windowmenu->window->stick();
|
// no need to send it to a workspace it already exist on
|
||||||
|
if (index == windowmenu->screen->getCurrentWorkspaceID())
|
||||||
|
return;
|
||||||
|
|
||||||
if (button == 1)
|
// if the window is stuck then unstick it
|
||||||
windowmenu->screen->sendToWorkspace(index, False);
|
if (windowmenu->window->isStuck())
|
||||||
else if (button == 2)
|
windowmenu->window->stick();
|
||||||
windowmenu->screen->sendToWorkspace(index);
|
|
||||||
|
if (button == 1) { // send to workspace without changing workspace
|
||||||
|
windowmenu->screen->sendToWorkspace(index,
|
||||||
|
windowmenu->window, false);
|
||||||
|
} else if (button == 2) { // send to workspace and change workspace
|
||||||
|
windowmenu->screen->sendToWorkspace(index,
|
||||||
|
windowmenu->window, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hide();
|
hide();
|
||||||
|
|
Loading…
Reference in a new issue