changeset 569:5e61b8180623

6735584: XNETProtocol:setStateHelper() produces bad _NET_WM_STATE messages Reviewed-by: yan
author art
date Tue, 12 Aug 2008 12:00:46 +0400
parents f0043a2428f6
children 99658a8d42fa b942efbc1c72
files src/solaris/classes/sun/awt/X11/XNETProtocol.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/classes/sun/awt/X11/XNETProtocol.java	Fri Aug 08 03:32:34 2008 -0700
+++ b/src/solaris/classes/sun/awt/X11/XNETProtocol.java	Tue Aug 12 12:00:46 2008 +0400
@@ -189,6 +189,8 @@
                 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 {