[ icewm-Bugs-2987552 ] Problem of activated window with java

SourceForge.net <[email protected]> Tue, 19 Mar 2013 19:42:36 -0700
Newsgroups gmane.comp.window-managers.icewm.devel
Message-ID <[email protected]>
Bugs item #2987552, was opened at 2010-04-15 01:09
Message generated for change (Comment added) made by r0bnewt0n
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100031&aid=2987552&group_id=31

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: icewm-1.3
Group: icccm
Status: Open
Resolution: None
Priority: 8
Private: No
Submitted By: Cedric Verkleeren (cverkleeren)
Assigned to: Marko Macek (captnmark)
Summary: Problem of activated window with java

Initial Comment:
A java window is not activated when you click on a JPanel.
I have tested with many java application.
I see there is no event "Window Activated" sent to the application.
The event "Window Activated" is well sent when you click on the title bar or on the shortcut in the taskbar
I works with Gnome, the event is sent. It's the reason why I suppose the bug is in IceWM.
I have this behaviour with icewm 1.2.35 under Fedora 10 with Sun jre 1.6.0_19.
I have tested with the latest icewm 1.3.6 and 1.2.37 and I have the same behaviour.

Step to reproduce:
- Click in a window (it's activated and gain the focus)
- Click in a java window (it's not activated)

you will find my preferences file in attachment


----------------------------------------------------------------------

Comment By: r0bnewt0n (r0bnewt0n)
Date: 2013-03-19 19:42

Message:
captnmark mentions a fix for this in 1.3.8pre1.  I believe I have found his
patch here:

http://icewm.cvs.sourceforge.net/viewvc/icewm/icewm-1.2/src/wmframe.cc?sortby=date&r1=1.83.2.28.2.16&r2=1.83.2.28.2.17&pathrev=icewm-1-3-BRANCH

He changed an if statement in wmframe.cc, line 2659.  I believe that was
the only change that was committed at the time, with the comment 'JDK 7
focus fix'.

I have obtained the 1.3.7 source (Centos 6 SRPM file), and applied the
patch that he made for this bug.  Unfortunately the problem is still
happening.  It seems that this patch is not sufficient?

----------------------------------------------------------------------

Comment By: Prasanth Pasala (prasanth)
Date: 2012-07-27 08:33

Message:
Just want to clarify: When the app is launched you can type in text fields.
It is only when you switch from other apps you can't type in the text
fields. There is a work around for this, you have to minimize the app and
maximum it again. Once you do that you can start typing in the text fields.

----------------------------------------------------------------------

Comment By: Prasanth Pasala (prasanth)
Date: 2012-07-27 08:29

Message:
Seems like now the java application gets focus and you can use mouse to
move around but you can't type in any of the text fields. I see a separate
item for this
(https://sourceforge.net/tracker/?func=detail&aid=2987552&group_id=31&atid=100031?).
 I have tested the app in Gnome and XFCE and it works fine.

----------------------------------------------------------------------

Comment By: Marko Macek (captnmark)
Date: 2011-11-19 12:21

Message:
The fix for this is now in CVS (for 1.3.8pre1)

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2011-11-02 10:46

Message:
For what it's worth, I've tried all of the options shown below with 1 and
then with 0 and it doesn't seem to make any difference.

#### Testing features to try and fix a bug with JDK 7
#FocusOnMap = 1
#FocusOnMapTransient = 1
#FocusOnAppRaise = 1
#IgnoreNoFocusHint = 1
#ClickToFocus = 1
#RaiseOnFocus = 1
#FocusOnClickClient = 1
#RaiseOnClickClient = 1
#RaiseOnClickFrame = 1
#PassFirstClickToClient = 1

----------------------------------------------------------------------

Comment By: Prasanth Pasala (prasanth)
Date: 2011-10-17 15:52

Message:
This issue seems to be occurring with Ice 1.3.7-7 and JDK 7. Works fine
with JDK 6. 

Please see the below link for a discussion on this in openJDK forum
http://mail.openjdk.java.net/pipermail/swing-dev/2010-June/001104.html

Please let us know if there is a work around.

Thanks

----------------------------------------------------------------------

Comment By: Cedric Verkleeren (cverkleeren)
Date: 2010-04-29 00:22

Message:
The problem is solved.
Thanks a lot.

----------------------------------------------------------------------

Comment By: Marko Macek (captnmark)
Date: 2010-04-28 12:03

Message:
Can you test with icewm-1.3.7pre2?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100031&aid=2987552&group_id=31

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar