File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ class DesktopLayout(IntEnum):
4040
4141class Window :
4242 NAME = "_NET_WM_NAME"
43+ LEGACY_NAME = "WM_NAME"
4344 VISIBLE_NAME = "_NET_WM_VISIBLE_NAME"
4445 ICON_NAME = "_NET_WM_ICON_NAME"
4546 VISIBLE_ICON_NAME = "_NET_WM_VISIBLE_ICON_NAME"
Original file line number Diff line number Diff line change @@ -1066,6 +1066,10 @@ def getName(self) -> Optional[str]:
10661066 """
10671067 ret : Optional [Xlib .protocol .request .GetProperty ] = self .getProperty (Window .NAME )
10681068 res : Optional [Union [List [int ], List [str ]]] = getPropertyValue (ret , display = self .display )
1069+ if res :
1070+ return str (res [0 ])
1071+ ret = self .getProperty (Window .LEGACY_NAME )
1072+ res = getPropertyValue (ret , display = self .display )
10691073 if res :
10701074 return str (res [0 ])
10711075 return None
You can’t perform that action at this time.
0 commit comments