Re: [wmii] detecting if client is fullscreen

2009-05-10 Thread Kris Maglione

On Sun, May 10, 2009 at 12:26:02AM -0700, Suraj Kurapati wrote:

Is there an easier way to detect if a client is currently fullscreen than:
...


No, it should really be available from /client/*/ctl, though. 
I'll add that later today. Probably the best option available, 
though, is to use xprop (or whatever X11 library is available 
for your language) to see if _NET_WM_STATE contains 
_NET_WM_STATE_FULLSCREEN.


--
Kris Maglione

The object-oriented model makes it easy to build up programs by
accretion.  What this often means, in practice, is that it provides a
structured way to write spaghetti code.
--Paul Graham




[wmii] detecting if client is fullscreen

2009-05-10 Thread Suraj Kurapati
Hello,

Is there an easier way to detect if a client is currently fullscreen than:

(1) reading /tag/sel/ctl
(2) parsing the dimensions of the floating area
(3) comparing the dimensions of the current client

If the current client's dimensions match that of the floating area, we
know it is fullscreen.

Thanks for your consideration.