JDK-6618038 : Java applications don't get WindowStateListener.windowStateChanged event on Compiz or Beryl WM
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u5
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux
  • CPU: x86
  • Submitted: 2007-10-17
  • Updated: 2007-11-19
  • Resolved: 2007-11-19
Related Reports
Relates :  
Relates :  
Description
Java applications don't get WindowStateListener.windowStateChanged event when user is doing maximize/unmaximize of the window/frame

Steps to Reproduce:
1. Unzip attched MacMaximize.zip NetBeans project and run MacMaximize.jar in /dist subdirectory

2. App frame is opened; minimize it, restore it and watch how the logs are written into console. So far so good.

3. Now maximize and restore -> no logs written and no text changes visible, because application don't get windowStateChanged event, but it should.

Note that on Windows everything works OK.

Comments
EVALUATION We do not process mximization because Compiz doesn't add _NET_WM_STATE to _NET_SUPPORTED list, and so (according to WM spec) we treat it as WM which doesn't support extended state. It looks like a bug in Compiz and I've filed it http://bugs.freedesktop.org/show_bug.cgi?id=13289 So, I'm closing this CR as not a bug (in java), since it is a bug in Compiz.
19-11-2007

EVALUATION The bug cannot be reproduced when running on Gnome/Metacity 2.16. Need more info regarding the window manager environment used when the incorrect behavior is reproduced.
18-10-2007