Menu

#863 Problem of activated window with java

icccm
open
icewm-1.3 (100)
8
2014-04-10
2010-04-15
No

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

Discussion

  • Cedric Verkleeren

     
  • Marko Macek

    Marko Macek - 2010-04-28
    • priority: 5 --> 8
    • assigned_to: nobody --> captnmark
     
  • Marko Macek

    Marko Macek - 2010-04-28

    Can you test with icewm-1.3.7pre2?

     
  • Cedric Verkleeren

    The problem is solved.
    Thanks a lot.

     
  • Prasanth Pasala

    Prasanth Pasala - 2011-10-17

    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

     
  • Nobody/Anonymous

    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

     
  • Marko Macek

    Marko Macek - 2011-11-19

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

     
  • Prasanth Pasala

    Prasanth Pasala - 2012-07-27

    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.

     
  • Prasanth Pasala

    Prasanth Pasala - 2012-07-27

    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.

     
  • r0bnewt0n

    r0bnewt0n - 2013-03-20

    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?

     
  • Bernd Eggink

    Bernd Eggink - 2013-03-20

    I installed the latest version from CVS on a PC and a Notebook, both with mostly identical software, both running Linux (Crux 2.8). On the PC the problem is gone, on the Notebook it is still present. No idea why.
    And the bug I submitted at Oracle (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7147075) on 2012-02-20 is still open.

     
  • r0bnewt0n

    r0bnewt0n - 2013-03-22

    I should clarify something about my earlier comment. The behaviour I am having matches what prasanth described:

    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.

    This may not be related to the original bug description. It is probably related to this other bug report: http://sourceforge.net/tracker/?func=detail&aid=3495395&group_id=31&atid=100031

    So, the patch I saw in CVS may well indeed fix the issue that the original poster submitted. And we need another patch to fix the problem that I and prasanth describe?

     

Log in to post a comment.

MongoDB Logo MongoDB