Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Dock adds wrong symbol
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Dock adds wrong symbol
Guest English 7 brianw [Read]
09 February 2015 à 18:20

Guest, Thursday 05 February 2015 à 12:31

Hey

I'm using

- Linux Mint 17.1 Cinnamon
- Cairo-Dock 3.3.2 with OpenGL

I've installed Heroes of Might and Magic III and TES: Morrowind, both via Wine.
Now I've tried to add the symbols to Cairo-Dock, and well:

The first symbol I add (no matter if it's Morrowind or Heroes III) sticks there like it should.
BUT the second symbol I try to add always becomes the same symbol as the first one.

For example:
1. I add Morrowind to Cairo-Dock
2. I try to add Heroes III to Cairo-Dock -> the symbol is Morrowind and it also starts Morrowind (-> 2 Morrowind-symbols instead of one for Heroes III + one for Morrowind; it also happens the other way round)

brianw, Friday 06 February 2015 à 14:58


Subscription date : 25 April 2012
Messages : 270
Hello Guest. I am not positive but this may be a window class issue. When you run the applications can you open a terminal and post back the results of the following for each application?

xprop | grep -i class


The mouse cursor should turn into something like a 'cross-hair' and you click on the window you want to get the information for (example: click on the window for Morrowind) and the terminal should display something like:

WM_CLASS(STRING) = "lxterminal", "Lxterminal"

Guest, Saturday 07 February 2015 à 00:26

Hello brianw

Unfortunately, the game is always fullscreen so I can't get to the terminal while I'm in the game. Do you know a way to achieve this?

brianw, Sunday 08 February 2015 à 16:11


Subscription date : 25 April 2012
Messages : 270
If you do a <ctrl><alt><f1> to go to a different virtual terminal then log in on that terminal you can use (note that the |less allows you to page through the results since you will not have a mouse and scrollbar. The less command uses spacebar and pgdwn pages down, pgup pages up and return key goes line by line, up down arrows do line by line up/down respectively and q quits):

to get a list of all window ids and names:
xwininfo -root -children -display :0.0 | less


This will give you a list of information something like:
xwininfo: Window id: 0x248 (the root window) (has no name)

Root window id: 0x248 (the root window) (has no name)
Parent window id: 0x0 (none)
81 children:
0x400000b "cairo-dock-sub": ("cairo-dock" "Cairo-dock") 365x294+314+104 +314+104
0x400028e "cairo-dock-sub": ("cairo-dock" "Cairo-dock") 1x1+0+0 +0+0
0x4a00366 "lxterminal": ("lxterminal" "Lxterminal") 177x336+561+414 +561+414
0x4a0021b "lxterminal": () 10x10+-100+-100 +-100+-100
0x4a00107 "lxterminal": ("lxterminal" "Lxterminal") 177x336+567+415 +567+415
0x4400058 "Chromium clipboard": () 10x10+-100+-100 +-100+-100
0x440004a (has no name): () 147x23+437+306 +437+306
0x4a00035 (has no name): () 1x1+-1+-1 +-1+-1
0x4a00001 "lxterminal": ("lxterminal" "Lxterminal") 10x10+10+10 +10+10
0x4000013 "cairo-dock-sub": ("cairo-dock" "Cairo-dock") 270x124+994+104 +


Then use xprop with the window id to get the class (which should be the same as from the above command):
xprop -id 0x4a00107 | grep WM_CLASS


WM_CLASS(STRING) = "lxterminal", "Lxterminal"


Then use <ctrl><alt><f7> to get back to X display (may be <f8> or <f9>)

Guest, Sunday 08 February 2015 à 20:26

0x3800001 "Heroes of Might and Magic III": ("Heroes3.exe" "Wine") 800x600+0+0 +0+0


xprop -id 0x3800007 | grep WM-class
xprop: unable to open display



Guest, Sunday 08 February 2015 à 20:40

Correct myself: 0x3800007 in the first code

Guest, Sunday 08 February 2015 à 20:47

I logged out now, logged in again and the two Heroes-icons in the dock became Morrowind-icons. Seams like if the dock doesn't make any difference between programs that are started via Wine.

brianw, Monday 09 February 2015 à 18:20


Subscription date : 25 April 2012
Messages : 270
Sorry the xprop command should have read:
xprop -id 0x??????? -display :0.0 | grep WM_CLASS


Also, there was a topic that discussed the problem with wine and window class http://www.glx-dock.org/bg_topic.php?t=6570

So you should be able to create a custom launcher and set the window class under the extra parameters section.

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Dock adds wrong symbol
Guest English 7 brianw [Read]
09 February 2015 à 18:20


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Dock adds wrong symbol Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.