[xmonad] "wmctrl -l" lists all my windows as being on the same workspace (0)

Lara Michaels laramichaels1978 at yahoo.com
Fri Jun 29 13:16:26 CEST 2012

Hi Tobias,

Again thank you for your help with this. Which lines exactly did you remove? I just removed these three lines:

forM_ (W.current s : W.visible s) \$ \x ->  forM_ (W.integrate' (W.stack (W.workspace x))) \$ \win -> do  setWindowDesktop win curr

Did you change/remove any more code (eg, the block immediately below)?

thanks!
~l

________________________________
From: Tobias Hommel <xmonad at genoetigt.de>
To: Lara Michaels <laramichaels1978 at yahoo.com>
Sent: Friday, June 29, 2012 6:50 AM
Subject: Re: [xmonad] "wmctrl -l" lists all my windows as being on the same workspace (0)

Hey Lara,

I tried it here, works great. Make sure XMonad is recompiled after making your
EwmhDesktops.hi
EwmhDesktops.hs
EwmhDesktops.o

Besides, I do not think, that 0.9 will work better for this window/desktop
stuff, the function from the EwmhDesktops has not changed since that:

On Thu, Jun 28, 2012 at 11:13:25AM -0700, Lara Michaels wrote:
> Hi Tobias,
>
> Unfortunately this did not work for me. I downloaded the source, commented out that bit in EwmhDesktops.hs, compiled it and replace the EwmhDesktops.hi file found in my system with the compiled version of the modified file. It didn't change anything.
>
> I am now trying to reinstall 0.9.2 on my system but for some mysterious reason xmonad-contrib fails to build. :(
>
> ~l
>
>
>
> ----- Original Message -----
> From: Tobias Hommel <xmonad at genoetigt.de>
> To: Lara Michaels <laramichaels1978 at yahoo.com>
> Cc:
> Sent: Thursday, June 28, 2012 8:17 AM
> Subject: Re: [xmonad] "wmctrl -l" lists all my windows as being on the same workspace (0)
>
> Hey Lara,
>
> that's quite easy. Grab the source code from XMonadContrib from:
>
> You may now modify your copy and restart/recompile xmonad, e.g. check out what
> happens if you comment out the lines concerning the "gnome-panel hack".
>
> On Wed, Jun 27, 2012 at 04:28:55PM -0700, Lara Michaels wrote:
> > Hi Tobias,
> >
> > Could you clarify what you mean by copying and modifying the relevant code for my personal config? Not sure how I would do that.
> >
> > thanks!
> > ~l
> >
> >
> >
> > ----- Original Message -----
> > From: Tobias Hommel <xmonad at genoetigt.de>
> > To: Lara Michaels <laramichaels1978 at yahoo.com>
> > Sent: Wednesday, June 27, 2012 8:55 PM
> > Subject: Re: [xmonad] "wmctrl -l" lists all my windows as being on the same workspace (0)
> >
> > Hey Lara,
> >
> > ah, that is a reason. So, either copy and modify the relevant code for your
> > personal config, or make the gnome-panel hack optional and send a patch
> > upstream, or maybe you could somehow tell XMonad to write the info elsewhere,
> > e.g. to window properties.
> > Although I would prefer the second method. The behaviour of the EWMH Module is
> > obviously wrong.
> >
> > On Wed, Jun 27, 2012 at 08:17:11AM -0700, Lara Michaels wrote:
> > > Hi Tobias,
> > >
> > > > Anyway, does this cause any problems? I haven't noticed any by now.
> > >
> > >
> > > Well, I would like to feed the output of "wmctrl -l" into an applet that would tell me which windows are on which workspace(s). This pretty much breaks any hope of getting that information precisely when it is most useful (ie, when one is using a multi-head setup and is likely to do even greater use of all the different workspaces).
> > >
> > > I am pretty confident this worked fine in 0.9, because I used the Gnome Windows Selector back then and it could tell me on which workspace each window was.
> > >
> > > best
> > > ~l
> > >
> > >
> > > ----- Original Message -----
> > > From: Tobias Hommel <xmonad at genoetigt.de>
> > > To: Lara Michaels <laramichaels1978 at yahoo.com>
> > > Sent: Wednesday, June 27, 2012 4:09 PM
> > > Subject: Re: [xmonad] "wmctrl -l" lists all my windows as being on the same workspace (0)
> > >
> > > Hey Lara,
> > >
> > > hmm, you're correct, I noticed the same behaviour here. All windows from the
> > > workspace on the "laptop screen" and all from the "external screen" are listed
> > > as being on the currently active workspace, depending on "where my mouse cursor
> > > is".
> > >
> > > And yes, I also think this particular code snippet is responsible for this
> > > behaviour.
> > >
> > > Anyway, does this cause any problems? I haven't noticed any by now.
> > >
> > > On Wed, Jun 27, 2012 at 07:23:49AM -0700, Lara Michaels wrote:
> > > > While googling for a solution I came across this bit of code in XMonad.Hooks.EwmhDesktops:
> > > >
> > > > -- Per window Desktop  -- To make gnome-panel accept our xinerama stuff, we display  -- all visible windows on the current desktop.  forM_ (W.current s : W.visible s) \$ \x ->  forM_ (W.integrate' (W.stack (W.workspace x))) \$ \win -> do  setWindowDesktop win curr
> > > >
> > > >
> > > > Might this be why wmctrl reports all windows as being in the currently active workspace when I have Xorg running with two screens?
> > > >
> > > > thank you for any insight
> > > > ~l
> > > >
> > > >
> > > > On Tue, Jun 26, 2012 at 10:58:00AM -0700, Lara Michaels wrote:
> > > > > Hello,
> > > > >
> > > > >
> > > > > When I run wmctrl -l, it lists all my windows as being on the same workspace (workspace 0):
> > > > >
> > > > > 0x03600005  0 ubuntu l at ubuntu: ~
> > > > > 0x02a000a3  0 ubuntu Mozilla Firefox
> > > > > 0x03a000a3  0 ubuntu Inbox - Local Folders - Mozilla Thunderbird
> > > > >
> > > > > However, when I run wmctrl -d it "knows" xmonad is using 7 workspaces named "1" through "7":
> > > > >
> > > > > 0  * DG: N/A  VP: N/A  WA: N/A  1
> > > > > 1  - DG: N/A  VP: N/A  WA: N/A  2
> > > > > 2  - DG: N/A  VP: N/A  WA: N/A  3
> > > > > 3  - DG: N/A  VP: N/A  WA: N/A  4
> > > > > 4  - DG: N/A  VP: N/A  WA: N/A  5
> > > > > 5  - DG: N/A  VP: N/A  WA: N/A  6
> > > > > 6  - DG: N/A  VP: N/A  WA: N/A  7
> > > > >
> > > > > How can I get wmctrl to play nicely with xmonad? From searching the web I thought this would do the trick:
> > > > >
> > > > > import XMonad.Hooks.EwmhDesktops
> > > > >
> > > > > main =  do
> > > > >                        , manageHook = manageDocks  manageHook defaultConfig
> > > > >                        , workspaces = myWorkspaces
> > > > >                        , normalBorderColor  = "#cccccc"
> > > > >                        , focusedBorderColor = "#cd8b00"
> > > > >                        , borderWidth = 3
> > > > >                        , layoutHook = showWName myLayout
> > > > >                        , logHook =  ewmhDesktopsLogHook <+> dynamicLogXinerama
> > > > >                        , handleEventHook = ewmhDesktopsEventHook
> > > > >                        } `additionalKeysP` myKeys
> > > > >
> > > > >
> > > > > but wmctrl still says all windows are on workspace 0.
> > > > >
> > > > >
> > > > > thank you for any help
> > > > > ~l
> > > > >
> > > > > _______________________________________________
> > > > > xmonad mailing list
> > > >
> > > > Regards,
> > > > Tobi
> > >
> > > Regards,
> > > Tobi
> >
> > Regards,
> > Tobi
>
> Regards,
> Tobi

Regards,
Tobi