Hi,
Yesterday, I have noticed a strange behavior with mksh (R44). Actually, I
don't know if it's a bug or not.
First, I am a Window Manager called DWM, which shows "window name" on the
top of the screen.
Yesterday, It showed "broken" instead of "urxvt".
When I launch a terminal window (rxvt-unicode) and then I start moc (music
on console), as soon as I close moc, it changes the terminal window
property to an empty title.
You can tell me it has nothing to do with mksh, but I don't have this issue
with bash.
Here examples using xprop, I guess you'll see what I'm talking about:
- With bash when I start an new rxvt-unicode window:
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_PID(CARDINAL) = 397
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
WM_LOCALE_NAME(STRING) = "fr_FR.UTF-8"
WM_CLASS(STRING) = "urxvt", "URxvt"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x40002f
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 23 by 31
program specified resize increment: 7 by 15
program specified base size: 16 by 16
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "solarmadus"
WM_COMMAND(STRING) = { "urxvt", "-cd", "/home/fulx" }
_NET_WM_ICON_NAME(UTF8_STRING) = "fulx@solarmadus:~"
WM_ICON_NAME(STRING) = "fulx@solarmadus:~"
_NET_WM_NAME(UTF8_STRING) = "fulx@solarmadus:~"
WM_NAME(STRING) = "fulx@solarmadus:~"
- With bash, after I close moc:
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_PID(CARDINAL) = 397
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
WM_LOCALE_NAME(STRING) = "fr_FR.UTF-8"
WM_CLASS(STRING) = "urxvt", "URxvt"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x40002f
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 23 by 31
program specified resize increment: 7 by 15
program specified base size: 16 by 16
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "solarmadus"
WM_COMMAND(STRING) = { "urxvt", "-cd", "/home/fulx" }
_NET_WM_ICON_NAME(UTF8_STRING) = "fulx@solarmadus:~"
WM_ICON_NAME(STRING) = "fulx@solarmadus:~"
_NET_WM_NAME(UTF8_STRING) = "fulx@solarmadus:~"
WM_NAME(STRING) = "fulx@solarmadus:~"
Now, let's see with mksh:
- When I start an new rxvt-unicode window:
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_PID(CARDINAL) = 397
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
WM_LOCALE_NAME(STRING) = "fr_FR.UTF-8"
WM_CLASS(STRING) = "urxvt", "URxvt"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x400043
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 23 by 31
program specified resize increment: 7 by 15
program specified base size: 16 by 16
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "solarmadus"
WM_COMMAND(STRING) = { "urxvt", "-cd", "/home/fulx" }
_NET_WM_ICON_NAME(UTF8_STRING) = "urxvt"
WM_ICON_NAME(STRING) = "urxvt"
_NET_WM_NAME(UTF8_STRING) = "urxvt"
WM_NAME(STRING) = "urxvt"
- For now, everything's fine. But when I close moc:
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_PID(CARDINAL) = 397
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, _NET_WM_PING
WM_LOCALE_NAME(STRING) = "fr_FR.UTF-8"
WM_CLASS(STRING) = "urxvt", "URxvt"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
window id # of group leader: 0x400043
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified minimum size: 23 by 31
program specified resize increment: 7 by 15
program specified base size: 16 by 16
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "solarmadus"
WM_COMMAND(STRING) = { "urxvt", "-cd", "/home/fulx" }
_NET_WM_ICON_NAME(UTF8_STRING) = "MOC [play] - Med - In You (Sundown Remix)"
WM_ICON_NAME(STRING) = "MOC [play] - Med - In You (Sundown Remix)"
_NET_WM_NAME(UTF8_STRING) =
WM_NAME(STRING) =
As you can see, WM_NAME and NET_WM_NAME are now empty, instead of showing
the "previous" window name.
I don't why actually. I'm pretty sure it's not related to my terminal (I
tried two versions) or moc (no problems with bash).
I hope my report will be useful.
Best Regards.
--
H.Moretto