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 74904 - WSA displays 4 workspaces regardless of the number of workspaces specified in the properties dialog
WSA displays 4 workspaces regardless of the number of workspaces specified in...
Status: RESOLVED FIXED
Product: Sawfish
Classification: Deprecated
Component: Window Manager
pre-1.3.x
Other Linux
: High major
: 1.5.x
Assigned To: John Harper
sawfish QA Team
: 73281 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-03-16 08:03 UTC by Dave Bordoley [Not Reading Bug Mail]
Modified: 2009-08-16 15:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Dave Bordoley [Not Reading Bug Mail] 2002-03-16 08:03:08 UTC
WSA displays 4 workspaces regardless of the number of workspaces specified
in the properties dialog.
Comment 1 Luis Villa 2002-03-18 19:14:41 UTC
Weird. This used to work for me, but definitely does not now. Dave,
can you please search for a duplicate on this one? I definitely think
that this is a duplicate but if possible I'd like to spend my time
elsewhere today :) Thanks...
Comment 2 Arvind S N 2002-03-26 10:51:08 UTC
with sawfish version 2.0.pre1(1.22)
1)Alt <Fx> keys do not create or switch between workspaces.
2)Changing workspace name from properties not reflected.
I remember seeing them work with previous versions, but can't find the
version number.

Changing the workspace names and incrementing or decrementing 
the number of workspaces in the properties dialog are reflected in
.gconf/desktop/gnome/applications/window_manager/%gconf.xml

I am not very sure if the  problem reported in the bug is also related 
with the sawfish problems. 
Mark has already noted bug 75272 is due to sawfish.

Apart from these there could be few issues regarding
decrementing  the number of workspaces from the properties dialog 
a)if user decrements, which workspace should be deleted
b)and what happens to the applications in that workspace
c)if user want to delete the third workspace but has five
  how does he delete it.
Comment 3 Mark McLoughlin 2002-03-27 14:01:22 UTC
Okay, so here's the way it works ...

The pager changes
/desktop/gnome/applications/window_manager/number_of_workspaces

gnome-settings daemon responds by by changing the
_NET_NUMBER_OF_DESKTOPS property

sawfish is free (according to the spec) to honour or reject this ...

At the moment it seems to be rejecting it ...

jsh: is that correct?
Comment 4 John Harper 2002-03-27 16:50:03 UTC
From the source code:

        ((_NET_NUMBER_OF_DESKTOPS _NET_DESKTOP_GEOMETRY)
         ;; XXX these conflict with user preferences
         )

so yes, that's right. The problem is that these settings are stored in
the user configuration, and so imho should only be changed by the
user. Sawfish has no way of verifying that the user really did want
those things changed (i.e. it's not just some fucking annoying
application trying to add workspaces)

It seems inherently broken to me that this setting is stored in two
places now. I don't know what to do..
Comment 5 Luis Villa 2002-03-29 20:24:42 UTC
cc'ing mark again so that maybe he can provide a coherent response to
that last question; I can't. :/
Comment 6 Mark McLoughlin 2002-04-02 08:50:03 UTC
I replied here

http://lists.eazel.com/pipermail/sawfish/2002-April/002908.html
Comment 7 John Harper 2002-04-03 06:33:58 UTC
Mark's response:

	My response would be that, sure, this is a wm user preference,
just like the desktop name scould be, but why not use the
_NET_NUMBER_OF_DESKTOPS message be another way of allowing the use to
change this preference as opposed to another place that this
preference is stored.

	So below[1] is a patch that I did before reading the response
... may I commit ?


--

I need to think about this. Intuitively I feel this is wrong, but I'm
not sure if I'm not just being puritanical..
Comment 8 John Harper 2002-04-10 04:44:44 UTC
some random comments:

- the patch doesn't correctly implement _NET_NUMBER_OF_DESKTOPS
(changing workspace-geometry doesn't actually add or remove any
workspaces, all it does is possibly alter the number of extra empty
workspaces sawfish tells the pager about)

- I still don't like the idea of there being a way for (possibly
external) clients to be able to cause sawfish to write to the disk by
sending properties to the root window

- I still don't think this should be stored by both the panel and the
wm (e.g. it's an obvious source of race conditions if one is ever run
without the other)

One option I guess may work is for sawfish to accept this message, but
not store it anywhere, just use it to affect how it sets the
_NET_NUMBER_OF_DESKTOPS property in the future.. or perhaps even get
rid of the workspaces part of sawfish's workspace-geometry variable..
Comment 9 Mark McLoughlin 2002-04-10 11:37:37 UTC
*** Bug 73281 has been marked as a duplicate of this bug. ***
Comment 10 Havoc Pennington 2002-04-22 23:33:12 UTC
John there are millions of things a malicious client could do, e.g. 
XGrabServer()... how is this one different?

Mark, if we can't get the Sawfish patch in we can just have xsettings
daemon propagate the setting over to sawfish config files.
(Or have it run sawfish-client or whatever is correct.)
xsettings daemon is basically where all the
propagate-gconf-to-other-things hacks live.
Comment 11 John Harper 2002-04-22 23:49:41 UTC
Oh man, you would really start writing into ~/.sawfish/custom? I
really hope you're kidding.. that's a recipe for disaster..

the thing that makes this different is that it writes to my disk

but I think my main objection was that the preference would be stored
in two places..

changes that I recently made to sawfish may go some way to removing
that problem (the default number of workspaces now comes from the
number of workspace names you give, not from a variable), so I think
this client message could just affect the number of workspaces that
sawfish shows you in the pager or something. i.e. it wouldn't cause
any persisten configuration changes or writes to disk
Comment 12 John Harper 2002-04-23 03:45:52 UTC
fixed on HEAD
Comment 13 Mark McLoughlin 2002-04-23 08:16:17 UTC
Thanks John, thats great :-)
Comment 14 Sandeep V. Honde 2002-05-27 13:17:24 UTC
Tested. It's works fine.
Can we close this bug ?