mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-19 06:45:17 +00:00
6735584: XNETProtocol:setStateHelper() produces bad _NET_WM_STATE messages
Reviewed-by: yan
This commit is contained in:
parent
540f1f640a
commit
18c2b3a604
@ -189,6 +189,8 @@ final class XNETProtocol extends XProtocol implements XStateProtocol, XLayerProt
|
||||
req.set_format(32);
|
||||
req.set_data(0, (!set) ? _NET_WM_STATE_REMOVE : _NET_WM_STATE_ADD);
|
||||
req.set_data(1, state.getAtom());
|
||||
// Fix for 6735584: req.data[2] must be set to 0 when only one property is changed
|
||||
req.set_data(2, 0);
|
||||
log.log(Level.FINE, "Setting _NET_STATE atom {0} on {1} for {2}", new Object[] {state, window, Boolean.valueOf(set)});
|
||||
XToolkit.awtLock();
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user