codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

Multiple workspaces with the same name confuses XMonad #531

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output? What do you see instead?

I expect that xmonad differs between workspaces even if they have the same 
name. 
The following describes the scenarios you run into when naming multiple 
workspaces identically.

-------------------
Scenario 1:
-------------------
How to produce:
1. Give some workspaces the same name. 
2. Restart and recompile XMonad.

What happens:
The renamed workspaces are added uselessly to the beginng of the list. (see 
picture 1.png)

-------------------
Scenario 2: 
-------------------
How to produce:
1. Start from scenario 1.
2. Restart X.

What happens:
XMonad shows all the workspaces separately but addresses them as one (see 
picture 2.png).

Additional information:
If you switch between two workspaces with the same name, xmonad loads the 
content again (you see it flicker) but the content is the same.

-------------------
Scenario 3a:
-------------------
How to produce:
1. Start from scenario 2.
2. Change one of the former identical workspace names to something unique.
3. Recompile and restart XMonad.

What happens:
XMonad displays mutliple times the unique name?! (see picture 3a.png)

Additional information:
From this point on, recompiling and restarting doesn't fix the corruption of 
the running XMonad session.

-------------------
Scenario 3b:
-------------------
How to produce:
1. Start from Scenario 3a
2. Restart X

What happens: 
The multiple workspaces are shown again, still addresses as one, but the 
uniquely named workspace is displayed and addressed correctly. (see picture 
3b.png)

-------------------
Scenario 3c:
-------------------
How to produce:
1. Start from Scenario 3b.
2. Change all workspace names to something unique again.
3. Recompile and Restart Xmonad.

What happens:
The doesn't have the intended effect, instead some workspace keys stop working 
and a random one is shown mutliple times. (see picture 3c.png)

Restarting X fixes this issue.

4. Start with Scenario 1 again, it's fun (:

-------------------
What version of the product are you using? On what operating system?
Linux ******* 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux (wheezy)
xmonad 0.10

-------------------
Are you using an xmonad.hs?  Please attach it and the output of "xmonad
--recompile".
Yes I'm using it, there are no compilation errors.

-------------------
Please provide any additional information below.
Dzen2 and Xmobar showed the same effects.

Original issue reported on code.google.com by erdnussb...@gmail.com on 5 Feb 2013 at 11:12

Attachments:

GoogleCodeExporter commented 8 years ago
Why would you expect that?  The tag ("name") is the only externally visible 
handle xmonad has on a workspace.  It's conceivable that other window managers 
use internal names for workspaces and let you map many of those to the same 
display name, but xmonad uses the tag as the workspace's real name and expects 
the tag to be unique.  (In fact I am a little surprised xmonad doesn't check 
and complain when tags aren't unique.)

There are ways to get display names that differ from the internal tag, but 
you'll have to do extra work to get them.  (You can for example modify or 
replace the names that DynamicLog sends to an external panel, which is often 
used to add clickable icons in dzen.)

Original comment by allber...@gmail.com on 6 Feb 2013 at 2:26

GoogleCodeExporter commented 8 years ago
I expected this behavior because i thought i was giving xmnoad an array of 
names for the workspaces, but internally they are still handled through 
indices. But you are totally right, it should have been obvious, due to the 
fact of how i handle the workspaces in the config... 
Nevertheless an error would be great, i've been confronted with mad randomness 
for hours until i found the source for my troubles (:

Original comment by erdnussb...@gmail.com on 7 Feb 2013 at 7:34

GoogleCodeExporter commented 8 years ago
Maybe related, not sure:
But using renameWorkspace I named 2 workspaces the name.
When the workspace was selected xmobar was showing "WorkSName WorkSName".
I was unable to navigate to the second WorkSName.
So I renamed this one using renameWorkspace to something else, that worked.

However when I went back to WorkSName xmonad crashed:
xmonad-x86_64-l[5507]: segfault at 40 ip 00007f140991aa23 sp 00007fff4d5f4908 
error 4 in libX11.so.6.3.0[7f14098b7000+13c000]

Original comment by killian....@megasoft.be on 14 Jul 2014 at 9:59

GoogleCodeExporter commented 8 years ago
killian.de.volder@megasoft.be, any chance you can get a backtrace from that 
crash?
(usually this indicates problems with the haskell X11 bindings)

Original comment by allber...@gmail.com on 14 Jul 2014 at 2:32