<div dir="ltr">Hi Alexis --<div><br></div><div>First off, sorry for not CC'ing the mailing list. Dunno how that happened; they're back in the loop.</div><div><br></div><div>I haven't played with workspace groups very much, so I'm going to take a guess about how they work. Let me know if I'm wrong. My guess is this: you have a collection of workspace groups, which is just a list of workspaces. When you switch to a group, this changes which workspace is visible on all the screens in some deterministic way -- e.g. switching to group ["foo", "bar", "baz"], the left screen is always showing workspace "foo", middle screen "bar", right screen "baz". (I don't care if this is the actual mapping -- so long as the mapping is always the same.)</div><div><br></div><div>Then, you have a window on one of the screens, and you always want it to be visible on that screen, even when you change workspace groups.</div><div><br></div><div>I have two more assumption, which is that you are only ever changing workspaces by changing workspace groups; and that any given workspace only appears in one group.</div><div><br></div><div>If all these assumptions are correct, then one solution to your problem would be simply to copy the window of interest to the appropriate workspaces (rather than using `copyToAll`). You can use `copy` to copy to a single other workspace, and `foldr` to copy to a collection of workspaces:</div><div><br></div><div> XMonad.Actions.CopyWindow XMonad.StackSet> :t foldr copy</div><div> foldr copy</div><div> :: (Eq i, Eq a, Eq s, Foldable t) =></div><div><div> StackSet i l a s sd -> t i -> StackSet i l a s sd</div></div><div><br></div><div>All that remains for you is to find out which are the right workspaces to copy to. That involves checking which workspace is currently focused, and which other workspaces are in the same "position" in your groups. We can help you craft this code, though we'll need to see your existing config to give good advice.</div><div><br></div><div>You may also be interested in combining WorkspaceGroups with IndependentScreens (<a href="http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-IndependentScreens.html">http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-IndependentScreens.html</a>), which would give you a systematic way to name your workspaces and ease the computation of which other workspaces are in the same "position" in your groups.</div><div><br></div><div>Good luck,</div><div>~d</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 22, 2015 at 2:00 PM, Alexis de BRUYN <span dir="ltr"><<a href="mailto:alexis.mailinglist@de-bruyn.fr" target="_blank">alexis.mailinglist@de-bruyn.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Daniel,<br>
<br>
Thanks for your answer.<br>
<br>
I have 3 monitors in Xinerama mode with 3 workspace groups. I am using viewWSGroup [1] to navigate through my workspace groups. Sometimes I want to set a window to be visible to all my workspace groups (so when I do a viewWSGroup, I always want to see this particular window).<br>
<br>
Long times ago, I used Gnome in a similar multihead setup, I was able to right clic on a window and mark it as visible on all workspaces (the 3 monitors were seen as one workspace, which is not with Xmonad, but I am trying to reproduce this behaviour with DynamicWorkspaceGroups). So when I changed the workspace, I was able to see my window.<br>
<br>
I hope, I am clear.<br>
<br>
Thanks for your time,<br>
<br>
[1] <a href="http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-DynamicWorkspaceGroups.html#v:viewWSGroup" rel="noreferrer" target="_blank">http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-DynamicWorkspaceGroups.html#v:viewWSGroup</a><span class=""><br>
<br>
On 06/21/15 23:42, Daniel Wagner wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
X's architecture makes it impossible to show a window on the screen in<br>
two different locations (e.g. on two different screens) without<br>
compositing. xmonad doesn't know anything about compositing. The<br>
behavior you are seeing is xmonad doing its best to reconcile your<br>
request (show this window on all workspaces, and show several workspaces<br>
at once) with what it knows how to do (pick a subset of the windows it<br>
knows about and put at most one place).<br>
<br>
What exactly do you want sticky windows to do? I could imagine many<br>
behaviors one could want that mesh with the "only appears once"<br>
restriction, with varying levels of code required on your part.<br>
<br>
If you really want it to appear on both screens, you're out of luck with<br>
xmonad.<br>
~d<br>
<br>
On Thu, Jun 11, 2015 at 2:17 AM, Alexis de BRUYN<br></span>
<<a href="mailto:alexis.mailinglist@de-bruyn.fr" target="_blank">alexis.mailinglist@de-bruyn.fr</a> <mailto:<a href="mailto:alexis.mailinglist@de-bruyn.fr" target="_blank">alexis.mailinglist@de-bruyn.fr</a>>><span class=""><br>
wrote:<br>
<br>
Hi List,<br>
<br>
I am trying to get Sticky windows on my xinerama setup.<br>
<br>
After switching into another WorkspaceGroup, the new window which I<br>
previously copyToAll, appears in the new WorkspaceGroup but it is<br>
'attached' to my mouse pointer. I need to killAllOtherCopies.<br>
<br>
That fact that this window follows the mouse across the<br>
screens/monitors is annoying especially if I have more than one<br>
sticky window.<br>
<br>
How can I get rid of this? Is there another way to achieve this?<br>
<br>
Thank for help,<br>
<br>
--<br>
Alexis de BRUYN<br>
_______________________________________________<br>
xmonad mailing list<br></span>
<a href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a> <mailto:<a href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a>><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a><br>
<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Alexis de BRUYN<br>
<br>
</font></span></blockquote></div><br></div>