mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-08 14:08:48 +00:00
6961123: setWMClass fails to null-terminate WM_CLASS string
Reviewed-by: serb
This commit is contained in:
parent
344d4a5fc5
commit
089bc71081
@ -691,7 +691,7 @@ public class XBaseWindow {
|
||||
XToolkit.awtLock();
|
||||
try {
|
||||
XAtom xa = XAtom.get(XAtom.XA_WM_CLASS);
|
||||
xa.setProperty8(getWindow(), cl[0] + '\0' + cl[1]);
|
||||
xa.setProperty8(getWindow(), cl[0] + '\0' + cl[1] + '\0');
|
||||
} finally {
|
||||
XToolkit.awtUnlock();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user