<div dir="ltr">On Thu, Oct 25, 2012 at 5:33 PM, Raghavendra D Prabhu <span dir="ltr">&lt;<a href="mailto:raghu.prabhu13@gmail.com" target="_blank">raghu.prabhu13@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Regarding returning the workspace id of a window, I don&#39;t see it maintained by X (not atleast from Xorg); </blockquote>
<div><br></div><div>Workspaces do not exist at the X11 level; they&#39;re an implementation detail of the window manager, and the only standard concerning them is <a href="http://opendesktop.org">opendesktop.org</a>&#39;s EWMH.  You won&#39;t find any X11 or Xorg calls that know anything about them.</div>
<div><br></div><div>xmonad&#39;s workspaces exist as part of the StackSet.  At the time a window goes through the ManageHook, it is on the current workspace; any attempt to specify the current workspace before that will fail because it&#39;s not yet part of the StackSet (that is, the ManageHook executes as the window is being added to the StackSet, and as a result it will be on the current workspace when the ManageHook executes).  So, while you can easily query the StackSet to see where the window is, there&#39;s no real point in doing so.</div>
<div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix/linux, openafs, kerberos, infrastructure          <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div><br>
</div>