Re: Comments on 1.0pre3/pre4



Hi, 

I'd like to see still further clarification of _NET_DESKTOP_NAMES.
Firstly just a minor nitpick:

> _NET_DESKTOP_NAMES
> 
> The names of the first N desktops. This is a NULL spearated list of strings
> in UTF-8 [1] encoding with an additional NULL at the end of the list.
> This property MAY be changed by a Pager or the Window Manager at any time.
> Note: that N could be different from _NET_NUMBER_OF_DESKTOPS. If it is less
> then
> _NET_NUMBER_OF_DESKTOPS - then all the desktops with numbers greater then N

This should read "greater than *or equal to* N" since desktop numbers
are zero-based... like I said, just a nitpick...

> are considered to have no names. If N is greater then
> _NET_NUMBER_OF_DESKTOPS,
> then names outside of the _NET_NUMBER_OF_DESKTOPS are considered to be
> reserved
> in case number of desktops is increased.

But the main questions that occur to me are:

1. The "additional NULL" -- perhaps I am just thinking in terms of C
strings, always ending in NULL, but I found the language there a bit
ambiguous: if we have desktops named "Eins", "Zwei" and "Drei", which
of these do we have?

{'E','i','n','s','\0','Z','w','e','i','\0','D','r','e','i','\0','\0'}
or 
{'E','i','n','s','\0','Z','w','e','i','\0','D','r','e','i','\0'}

I assume the latter; there seems little point in the double-NULL since
XGetWindowProperty() tells you the property length.

2. Can any desktops *within* the list (or at its start) be anonymous?
For example, can you make desktops "Eins" and "Zwei" anonymous by
setting the propery like so?

{'\0','\0','D','r','e','i','\0'}


-Rob




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]