JDK-8171330 : Issues with transparent stage and GTK
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-12-15
  • Updated: 2016-12-23
  • Resolved: 2016-12-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
running the Hello test:

-cp Hello/dist/Hello.jar hello.HelloTranspStageAnim

Intermittent on some platforms, less on others.
Comments
Changeset: eea89b9cd8ed Author: ssadetsky Date: 2016-12-22 13:16 -0500 URL: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/eea89b9cd8ed 8171330: Issues with transparent stage and GTK Reviewed-by: ddhill, kcr ! modules/javafx.graphics/src/main/native-glass/gtk/glass_general.cpp ! modules/javafx.graphics/src/main/native-glass/gtk/glass_window.cpp
22-12-2016

Looks good to me. +1
21-12-2016

I'll test later today on Ubuntu 14.04 as well.
21-12-2016

Yes, it works perfect for Ubuntu 14.04 & 16.04 right after the fix. For some reasons Ubuntu 16.04 requires double buffering on.
21-12-2016

Code looks clean and works just fine on my Ubuntu 16 with gtk 2 & 3. Did you have a chance to test this on your Ubuntu 14 ? If we are good to go, I can push Thursday.
21-12-2016

Hi David, I have different wrong window appearance in my instance of Ubuntu 16.04. GTK3 3.22 got paint changes which affect JFX paint. Some paint functions we use are deprecated since 3.22 but they should still be functional. Probably this is a GTK bug. I found that I can fix my Ubuntu 16.04 issues by the next patch: http://cr.openjdk.java.net/~ssadetsky/8171330/webrev.01/ Please test it on your env.
21-12-2016

Adding a selection of off behavior. Good is the expected. Oddbad took the foreground of the active Screenshot app. bad show a translucent "empty" area Both of the bads started as rectangular, but switched to circular when I started to take a screen shot.
20-12-2016

Thanks, David. I confirm that it doesn't work for Ubuntu 16.04 sometimes, but works for 14.04 always.
20-12-2016

Ouch. There is something else going on here, but I am not sure what yet. With your .00 change, and using: javafx -Djdk.gtk.version=3 -Djdk.gtk.verbose=true -cp Hello/dist/Hello.jar hello.HelloTranspStageAnim I rarely seeing the application not quite display. I see a translucent background square, but not the rounded stage I should be seeing. This is onto a Ubuntu 16 display. Trying to debug now...
20-12-2016

http://cr.openjdk.java.net/~ssadetsky/8171330/webrev.00/
16-12-2016