Discussion:
Java 1.5, KWin and rolled windows
Cesar Martinez Izquierdo
2007-07-23 10:37:15 UTC
Permalink
Hello list.
We are migrating our open source GIS client from Java 1.4 to Java 1.5,
but we are getting a strange behaviour with 1.5 version under KDE.
When we create Java windows (JDialogs) from our application, they
randomly are displayed in rolled up mode. Then, if we click on the
window's kwin menu, we can see that the "rolled up" feature is selected.
If we de-select this feature, sometimes the window gets correctly
restored, but sometimes it remains rolled up (and sometimes the window
decorations disappear and the window contents gets maximized, filling
the full screen).

We didn't have this problem with Java 1.4, and we don't have it with
Java 1.5 in Gnome or Windows. Maybe it's a Java bug, or a KWin's bug
which is triggered by our application (or maybe there are bugs on both
sides). We have tried with different KDE versions (from quite old
Ubuntus to the lastest 04.07 Feisty).

The bug even appears in the JFileChooser, which is a window directly
created by Java, so I don't think we are doing something strange during
window creation. But it's a bit puzzling that I couldn't find similar
problems at Google.

- Have you ever heard a similar bug?
- (As a workaround) Is there a way to disable rolled windows in KWin?

Any idea is appreciated.

Regards,
--
César Martínez Izquierdo
gvSIG development project
http://www.gvsig.gva.es

IVER T.I.
C/ Salamanca 50
46005 Valencia - Spain
http://www.iver.es
Egon Willighagen
2007-07-23 10:53:11 UTC
Permalink
Post by Cesar Martinez Izquierdo
We are migrating our open source GIS client from Java 1.4 to Java 1.5,
but we are getting a strange behaviour with 1.5 version under KDE.
When we create Java windows (JDialogs) from our application, they
randomly are displayed in rolled up mode. Then, if we click on the
window's kwin menu, we can see that the "rolled up" feature is selected.
If we de-select this feature, sometimes the window gets correctly
restored, but sometimes it remains rolled up (and sometimes the window
decorations disappear and the window contents gets maximized, filling
the full screen).
With 'rolled up' you mean the effect you get when double clicking the
title bar, correct? So that you only get to see the title bar? I have
witnessed this behavior for quite some time now, but never really
found a pattern... actually, have not seen it in months now...

I know this is not really helpful... but glad to see others found this
behavior too :)

Egon
Cesar Martinez Izquierdo
2007-07-23 11:19:51 UTC
Permalink
Post by Egon Willighagen
With 'rolled up' you mean the effect you get when double clicking the
title bar, correct?
Yes, I mean that effect.
Post by Egon Willighagen
I know this is not really helpful... but glad to see others found this
behavior too :)
Well, it's better than nothing. At least we know it isn't just our
application's problem.
Maybe I open a bug in KWin and see what Kwin developers think about.

Is there any way to disable rolled-up windows in KWin?

Regards,
--
César Martínez Izquierdo
Equipo de desarrollo gvSIG
http://www.gvsig.gva.es

IVER T.I.
C/ Salamanca 50
46005 Valencia - Spain
http://www.iver.es
Kevin Krammer
2007-07-23 11:33:45 UTC
Permalink
Post by Cesar Martinez Izquierdo
Post by Egon Willighagen
With 'rolled up' you mean the effect you get when double clicking the
title bar, correct?
Yes, I mean that effect.
Post by Egon Willighagen
I know this is not really helpful... but glad to see others found this
behavior too :)
Well, it's better than nothing. At least we know it isn't just our
application's problem.
Maybe I open a bug in KWin and see what Kwin developers think about.
You should also file a bug report with SUN. If it worked before it is a
regression and they are quite serious about those.

For some reasons their current AWT peers or Java2D implementation seems to
have some strange issues with different window managers.
I have heard reports of Java windows not showing any content at all if run
under Compiz or Beryl.

Would be interesting do know which behavior you get with different JRE's
Post by Cesar Martinez Izquierdo
Is there any way to disable rolled-up windows in KWin?
You could try to override using window specific settings.

Cheers.
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
Cesar Martinez Izquierdo
2007-07-23 12:47:26 UTC
Permalink
Post by Egon Willighagen
Post by Cesar Martinez Izquierdo
We are migrating our open source GIS client from Java 1.4 to Java 1.5,
but we are getting a strange behaviour with 1.5 version under KDE.
When we create Java windows (JDialogs) from our application, they
randomly are displayed in rolled up mode. Then, if we click on the
window's kwin menu, we can see that the "rolled up" feature is selected.
If we de-select this feature, sometimes the window gets correctly
restored, but sometimes it remains rolled up (and sometimes the window
decorations disappear and the window contents gets maximized, filling
the full screen).
With 'rolled up' you mean the effect you get when double clicking the
title bar, correct? So that you only get to see the title bar? I have
witnessed this behavior for quite some time now, but never really
found a pattern... actually, have not seen it in months now...
I know this is not really helpful... but glad to see others found this
behavior too :)
Egon
Do you use the "looks" L&F library? (Just to try to find the common
roots of the problem).

Regards,
--
César Martínez Izquierdo
gvSIG development team
http://www.gvsig.gva.es

IVER T.I.
C/ Salamanca 50
46005 Valencia - Spain
http://www.iver.es
Loading...