After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 151183 - "move to another workspace" submenu should not appear when there's only 2 workspaces
"move to another workspace" submenu should not appear when there's only 2 wor...
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
2.11.x
Other All
: Normal minor
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks: 155456
 
 
Reported: 2004-08-27 04:27 UTC by Matthew Miller
Modified: 2006-02-20 02:15 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Proposed patch (486 bytes, patch)
2005-07-24 01:31 UTC, Christian Neumair
needs-work Details | Review
Patch to turn off the workspace list when there are only two workspaces (650 bytes, patch)
2006-02-17 01:55 UTC, Thomas Thurman
committed Details | Review

Description Matthew Miller 2004-08-27 04:27:56 UTC
Currently, the menu looks like this:

 Put on All Workspaces
 Move to Workspace Right
 Move to Another Workspace
    Left (1)
    Right (2)

I prefer to have only two workspaces because I find with more than that, I just
get my environment all cluttered up -- it's a distraction. Having two to flip
between is great. However, there's no reason for the menu to have that extra
suboption in this case.
Comment 1 Rob Adams 2004-08-28 01:44:33 UTC
Interesting point.  Though theoretically you can rename your workspaces, in
which case removing the submenu would make it so the actual workspace names
don't appear anywhere in the UI, unless you set an option for the pager.

In your case, you seem to have actually named your workspaces Left and Right,
giving perhaps the mistaken impression that the names that appear in the main
manu are actually the real names of the workspaces.  This is incorrect; the
names that appear there are always the direction of the workspace, so if your
workspaces are names foo and bar, it would still show up as "Move to Workspace
Left" and "Move to Workspace Right".
Comment 2 Matthew Miller 2004-10-18 01:54:12 UTC
Rob, I'm not so concerned about that -- if you only have two workspaces, their
names are drastically less important. And in fact, if you only have two, they
might as well be named Left and Right, which is why I changed the names of mine.
Sorry for the confusion.
Comment 3 Christian Neumair 2004-10-19 18:54:37 UTC
Note that if anybody decides to write a patch, there should be a patch against
libwnck as well, since it suffers from the same issue.
Comment 4 Loïc Minier 2005-07-23 18:31:55 UTC
This has also been reported in Debian at http://bugs.debian.org/319649 by Bill
Denney.
Comment 5 Christian Neumair 2005-07-24 01:31:28 UTC
Created attachment 49648 [details] [review]
Proposed patch

After applying the attached patch, the menu will only be created for more than
2 workspaces. I wonder whether we should take into account the numbers of
cols/rows also, i.e. whether we only should create the menu if the number of
workspace columns or rows is > 2 and we don't have 3 workspaces in 2 rows/cols
(because then the actions won't be sufficient). But on the other hand, it could
be confusing to not have this menu in some non-obvious cases.

Note that libwnck uses a different menu layout and always creates a "move to
workspace" submenu.
Comment 6 Elijah Newren 2005-10-02 04:22:12 UTC
It'd be really nice if we could get some way to keep the libwnck and metacity
windows in sync...  (and it'd also be really nice to replace all the existing
"move to another workspace" menu entries with previews as mocked up in bug 145281).

Anyway, I think the one-liner patch is simple enough and ought to be able to go
in after we branch--which should probably be within the next week or so.  Of
course, we'll have to ping Havoc first.  If we don't get back to this bug in
more than a couple weeks, someone please ping us.  :)
Comment 7 Elijah Newren 2005-10-08 22:53:48 UTC
Just looked again; why not disable the workspaces stuff the same way we do for
when there is only 1 workspace at the very beginning of meta_window_menu_new() ?
 I think that'd be better.
Comment 8 Thomas Thurman 2006-02-17 01:55:34 UTC
Created attachment 59545 [details] [review]
Patch to turn off the workspace list when there are only two workspaces

Here's a patch which turns off only the workspace menu when there are exactly two workspaces.

(Thanks to my seven-year-old daughter Rio for help with testing. We'll make a GNOME hacker of her yet.)
Comment 9 Elijah Newren 2006-02-19 15:28:28 UTC
Looks good to me.  The freeze would probably break ui freeze and although I'm sure we could get approval, I don't think it's worth the headache.  So, add a ChangeLog entry and I'll commit on head and not the gnome-2-14 branch.

Thanks.
Comment 10 Matthew Miller 2006-02-19 15:39:27 UTC
Cool. Thanks all.
Comment 11 Thomas Thurman 2006-02-19 19:38:10 UTC
Okay, here's an entry:

2006-02-19  Thomas Thurman  <thomas thurman org uk>

        Removed "move to another workspace" menu when there are
        exactly two workspaces.  Fixes #151183.

        * src/menu.c (meta_window_menu_new): clear
        META_MENU_OP_WORKSPACES bit when n_workspaces==2

Comment 12 Elijah Newren 2006-02-20 02:15:35 UTC
Committed, thanks.