How can I view the WMClass attribute of a window in Xorg (linux)?

30

7

I am trying to find a workaround for incorrect grouping of windows in Docky, and I believe the problem lies with the WMClass attribute that is set for each window. However, I do not know how to view this attribute for open windows. Is there any way to do this?

Ryan C. Thompson

Posted 2010-05-18T02:14:15.453

Reputation: 10 085

Answers

49

In a terminal, run

 xprop WM_CLASS

and then click the window in question.

akira

Posted 2010-05-18T02:14:15.453

Reputation: 52 754

WM_CLASS: not found. – phil294 – 2017-05-26T03:02:03.237

1@Blauhirn run xprop without arguments, you'll get all the properties (and should find WM_CLASS in there, if it's defined) – draeath – 2017-05-26T13:30:38.527

WHen i run this command the cursor only works when i click on the desktop. But when i click on the windows it doesn't work. – Maxrunner – 2018-03-14T11:51:31.523

0

it's an old problem, look here: bug reported

maoamid

Posted 2010-05-18T02:14:15.453

Reputation: 11

I do not get it – Pierre.Vriens – 2018-10-10T20:26:24.770

@Pierre I pasted by mistake something else, I edited my answer – maoamid – 2018-10-10T20:30:36.977