Re: RFR: 8274967: KeyCharacterCombinations for punctuation and symbols fail on non-US keyboards

2021-12-10 Thread Pankaj Bansal
On Mon, 15 Nov 2021 20:13:11 GMT, Martin Fox wrote: > The code that maps from a Windows virtual key code to a Java key code in > `getKeyCodeForChar` did not match the similar code in > `ViewContainer::HandleViewKeyEvent`. The OEM keys are assigned to printable > punctuation and symbols in

Re: RFR: 8273743: KeyCharacterCombination for "+" does not work on US QWERTY keyboard layout [v3]

2021-12-05 Thread Pankaj Bansal
On Wed, 10 Nov 2021 18:48:04 GMT, Martin Fox wrote: >> There was a mismatch between the way `get_glass_key` generated the Java key >> code for a given key press and how `getKeyCodeForChar` determined the key >> code for the matching character. For example, when pressing the plus sign on >> a

Re: RFR: 8273089: Deprecate JavaFX GTK 2 library for removal

2021-12-04 Thread Pankaj Bansal
On Tue, 30 Nov 2021 13:26:30 GMT, Kevin Rushforth wrote: > This PR deprecates the JavaFX glass GTK 2 library for removal. Since there > isn't an associated API, the mechanism for doing this is to print a > "deprecated for removal" warning message when the `glassgtk2` library it is > loaded. A

Re: RFR: 8271054: [REDO] Wrong stage gets focused after modal stage creation [v7]

2021-12-04 Thread Pankaj Bansal
On Mon, 1 Nov 2021 16:46:34 GMT, Thiago Milczarek Sayao wrote: >> Found the problem thru this path: >> >> **WindowStage.java** >> >> final void handleFocusDisabled() { >> if (activeWindows.isEmpty()) { >> return; >> } >> WindowStage window =

Re: RFR: 8274929: Crash while reading specific clipboard content [v2]

2021-11-11 Thread Pankaj Bansal
On Wed, 10 Nov 2021 12:46:08 GMT, Kevin Rushforth wrote: >> This bug is caused by not sanity checking the data returned by a call to the >> Windows Clipboard `IDataObject::GetData` method. When requesting a file >> descriptor with a format of either `CFSTR_FILEDESCRIPTORA` or >>

Re: RFR: 8274929: Crash while reading specific clipboard content [v2]

2021-11-11 Thread Pankaj Bansal
On Wed, 10 Nov 2021 12:46:08 GMT, Kevin Rushforth wrote: >> This bug is caused by not sanity checking the data returned by a call to the >> Windows Clipboard `IDataObject::GetData` method. When requesting a file >> descriptor with a format of either `CFSTR_FILEDESCRIPTORA` or >>

Re: RFR: 8227371: Drag while holding the CMD key does not work on macOS

2021-11-09 Thread Pankaj Bansal
On Fri, 22 Oct 2021 17:32:10 GMT, Martin Fox wrote: > During a drag-and-drop operation on the Mac the Command key will filter out > every drag source operation except `NSDragOperationGeneric` (this behavior is > provided by the OS). JavaFX drag sources only set the Move, Copy, and Link > drag

Re: RFR: 8273743: KeyCharacterCombination for "+" does not work on US QWERTY keyboard layout

2021-11-08 Thread Pankaj Bansal
On Tue, 28 Sep 2021 21:01:13 GMT, Martin Fox wrote: > There was a mismatch between the way `get_glass_key` generated the Java key > code for a given key press and how `getKeyCodeForChar` determined the key > code for the matching character. For example, when pressing the plus sign on > a US

Re: RFR: 8232812: [MacOS] Double click title bar does not restore window size

2021-11-08 Thread Pankaj Bansal
On Tue, 5 Oct 2021 20:36:37 GMT, Martin Fox wrote: > The test case for JDK-8160241 creates a window in a zoomed state (as defined > by macOS). When the OS later goes to unzoom the window it will try to shrink > it down to 1 point wide. This was entered as JDK-8163137 but the fix for that >

Re: RFR: 8236689: macOS 10.15 Catalina: LCD text renders badly

2021-10-16 Thread Pankaj Bansal
On Wed, 13 Oct 2021 23:59:40 GMT, Phil Race wrote: > On an external (non-retina) monitor JavaFX LCD text on macOS is painful on > the eyes. > Retina diminishes it rather than cures it. > > The problem is a mix of a couple of things > 1) CoreText no longer generates LCD glyphs (except perhaps

Re: RFR: 8271054: [REDO] Wrong stage gets focused after modal stage creation [v3]

2021-10-12 Thread Pankaj Bansal
On Tue, 12 Oct 2021 15:12:43 GMT, Kevin Rushforth wrote: >> Thiago Milczarek Sayao has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Break if reach self > > modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum/WindowStage.java

Re: RFR: 8271054: [REDO] Wrong stage gets focused after modal stage creation [v3]

2021-10-06 Thread Pankaj Bansal
On Wed, 22 Sep 2021 16:39:15 GMT, Thiago Milczarek Sayao wrote: >> Found the problem thru this path: >> >> **WindowStage.java** >> >> final void handleFocusDisabled() { >> if (activeWindows.isEmpty()) { >> return; >> } >> WindowStage window =

Re: RFR: 8271398: GTK3 drag view image swaps red and blue color channels [v5]

2021-09-17 Thread Pankaj Bansal
On Fri, 17 Sep 2021 13:00:20 GMT, Thiago Milczarek Sayao wrote: >> It seems raw images need to be converted BRGA -> RGBA. >> >> It was being converted on gtk2 code path, but gtk3 only uses >> `gtk_drag_set_icon_pixbuf`. >> >> I have simplified the gtk2 `DragView::View::expose` to paint with

Re: [jfx17u] RFR: 8273732: Clarify review policies for clean backports in JavaFX update releases [v2]

2021-09-15 Thread Pankaj Bansal
On Wed, 15 Sep 2021 23:06:39 GMT, Kevin Rushforth wrote: >> Added a paragraph indicating that a review of a clean backport to an update >> release is optional, if the bug in question has been approved for inclusion >> into the release. > > Kevin Rushforth has updated the pull request

Re: CFV: New OpenJFX Committer: Thiago Sayao

2021-09-13 Thread Pankaj Bansal
Vote: YES From: openjfx-dev on behalf of Kevin Rushforth Date: Monday, 13 September 2021 at 8:07 PM To: openjfx-dev@openjdk.java.net , Thiago Milczarek Sayao Subject: CFV: New OpenJFX Committer: Thiago Sayao I hereby nominate Thiago Sayao [1] to OpenJFX Committer. Thiago is an OpenJFX

Re: RFR: 8271398: GTK3 drag view image swaps red and blue color channels [v4]

2021-08-21 Thread Pankaj Bansal
On Fri, 20 Aug 2021 22:22:51 GMT, Thiago Milczarek Sayao wrote: >> It seems raw images need to be converted BRGA -> RGBA. >> >> It was being converted on gtk2 code path, but gtk3 only uses >> `gtk_drag_set_icon_pixbuf`. >> >> I have simplified the gtk2 `DragView::View::expose` to paint with

Re: RFR: 8271398: GTK3 drag view image swaps red and blue color channels [v3]

2021-08-17 Thread Pankaj Bansal
On Sun, 15 Aug 2021 21:18:51 GMT, Thiago Milczarek Sayao wrote: >> It seems raw images need to be converted BRGA -> RGBA. >> >> It was being converted on gtk2 code path, but gtk3 only uses >> `gtk_drag_set_icon_pixbuf`. >> >> I have simplified the gtk2 `DragView::View::expose` to paint with

Re: RFR: 8271054: [REDO] Wrong stage gets focused after modal stage creation

2021-08-16 Thread Pankaj Bansal
On Sun, 15 Aug 2021 20:10:43 GMT, Thiago Milczarek Sayao wrote: > Weird, It works consistently for me on 20.04. Just tested again to be sure. I am running a 20.04 VM. The test fails for me 60-70% of the time. I will request someone in team to try this once. - PR:

Re: RFR: 8271398: GTK3 drag view image swaps red and blue color channels

2021-08-15 Thread Pankaj Bansal
On Sun, 15 Aug 2021 16:26:59 GMT, Pankaj Bansal wrote: >> Test works on Linux, don't know on other platforms. >> >> `gradlew -PFULL_TEST=true -PUSE_ROBOT=true :systemTests:test --tests >> test.robot.javafx.dnd.DndRawImageTest` > >> Test works on Lin

Re: RFR: 8271054: [REDO] Wrong stage gets focused after modal stage creation

2021-08-15 Thread Pankaj Bansal
On Thu, 5 Aug 2021 23:38:06 GMT, Thiago Milczarek Sayao wrote: > Found the problem thru this path: > > **WindowStage.java** > > final void handleFocusDisabled() { > if (activeWindows.isEmpty()) { > return; > } > WindowStage window =

Re: RFR: 8271398: GTK3 drag view image swaps red and blue color channels

2021-08-15 Thread Pankaj Bansal
On Wed, 11 Aug 2021 23:40:00 GMT, Thiago Milczarek Sayao wrote: > Test works on Linux, don't know on other platforms. > > `gradlew -PFULL_TEST=true -PUSE_ROBOT=true :systemTests:test --tests > test.robot.javafx.dnd.DndRawImageTest` The fix does solve the issue and looks good to me. The test

Re: RFR: 8271398: GTK3 drag view image swaps red and blue color channels

2021-08-07 Thread Pankaj Bansal
On Fri, 6 Aug 2021 20:44:23 GMT, Thiago Milczarek Sayao wrote: > > I will look at this. Meanwhile, could you please write an automated system > > test for this? > > Sure, I would provide it, but in the past drag and drop tests were not > possible. Any ideas? I think it should be possible to

Re: RFR: 8271398: GTK3 drag view image swaps red and blue color channels

2021-08-05 Thread Pankaj Bansal
On Fri, 6 Aug 2021 02:18:38 GMT, Thiago Milczarek Sayao wrote: > It seems raw images need to be converted BRGA -> RGBA. > > It was being converted on gtk2 code path, but gtk3 only uses > `gtk_drag_set_icon_pixbuf`. > > It simplified the gtk2 `DragView::View::expose` to paint with >

Re: [jfx17] RFR: 8250590: Classes and methods in the javafx.css package are missing documentation [v6]

2021-07-30 Thread Pankaj Bansal
On Fri, 30 Jul 2021 06:23:59 GMT, Ajit Ghaisas wrote: >> This PR corrects/adds missing documentation for classes in javafx.css >> package. > > Ajit Ghaisas has updated the pull request incrementally with one additional > commit since the last revision: > > 8250590 - fix review comments

Re: [jfx17] RFR: 8250590: Classes and methods in the javafx.css package are missing documentation [v3]

2021-07-28 Thread Pankaj Bansal
On Tue, 27 Jul 2021 12:44:58 GMT, Ajit Ghaisas wrote: >> This PR corrects/adds missing documentation for classes in javafx.css >> package. > > Ajit Ghaisas has updated the pull request incrementally with one additional > commit since the last revision: > > 8250590 - add missing @since tag

Re: [jfx17] RFR: 8250590: Classes and methods in the javafx.css package are missing documentation [v3]

2021-07-28 Thread Pankaj Bansal
On Tue, 27 Jul 2021 12:44:58 GMT, Ajit Ghaisas wrote: >> This PR corrects/adds missing documentation for classes in javafx.css >> package. > > Ajit Ghaisas has updated the pull request incrementally with one additional > commit since the last revision: > > 8250590 - add missing @since tag

Re: [jfx17] RFR: 8250590: Classes and methods in the javafx.css package are missing documentation [v3]

2021-07-28 Thread Pankaj Bansal
On Mon, 26 Jul 2021 18:15:04 GMT, Kevin Rushforth wrote: >> Ajit Ghaisas has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8250590 - add missing @since tag > > modules/javafx.graphics/src/main/java/javafx/css/CssParser.java line 4748: >

[jfx17] Integrated: 8240640: [macos] Wrong focus behaviour with multiple Alerts

2021-07-27 Thread Pankaj Bansal
On Mon, 19 Jul 2021 19:52:05 GMT, Pankaj Bansal wrote: > The bug is a regression as a result of fix done for JDK-8227366 and is > reproducible on Linux and Mac. This fix is being reverted in this change and > a new bug (JDK-8271054) has been created to redo the JDK-8227366 > &g

Re: [jfx17] RFR: 8271230: Remove obsolete test classes and data files from 3DViewer sample

2021-07-26 Thread Pankaj Bansal
On Sat, 24 Jul 2021 12:45:04 GMT, Kevin Rushforth wrote: > Remove the obsolete `apps/samples/3DViewer/src/test` directory from the > 3DViewer sample, including two test classes that don't run and a set of data > files that won't load. This is a follow-on cleanup bug to >

Re: [jfx17] RFR: 8240640: [macos] Wrong focus behaviour with multiple Alerts [v2]

2021-07-23 Thread Pankaj Bansal
On Fri, 23 Jul 2021 16:35:58 GMT, Kevin Rushforth wrote: >> Pankaj Bansal has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fixed review comments 1) Increase delay 2) Fix Formatting 3) Make test >&g

Re: [jfx17] RFR: 8240640: [macos] Wrong focus behaviour with multiple Alerts [v3]

2021-07-23 Thread Pankaj Bansal
re as > well. This seems wrong as calling stage.setAlwaysOnTop(true) should not be > required to bring stage window in focus on running the test. This may be an > issue on my Window machine or something similar. I hope reviewers can shed > some light on this. Pankaj Bansal has upda

Re: [jfx17] RFR: 8240640: [macos] Wrong focus behaviour with multiple Alerts [v2]

2021-07-23 Thread Pankaj Bansal
On Fri, 23 Jul 2021 00:16:33 GMT, Kevin Rushforth wrote: > The fix (reverting the earlier fix for JDK-8227366) looks fine to me. The > test runs fine on Mac (and mostly fine on Linux, but I need to test a couple > more things). > > I also see the failure on Windows frequently depending on

Re: [jfx17] RFR: 8240640: [macos] Wrong focus behaviour with multiple Alerts [v2]

2021-07-23 Thread Pankaj Bansal
re as > well. This seems wrong as calling stage.setAlwaysOnTop(true) should not be > required to bring stage window in focus on running the test. This may be an > issue on my Window machine or something similar. I hope reviewers can shed > some light on this. Pankaj Bansal has upda

Re: RFR: 8269429: Linux: Only the last APPLICATION_MODAL window behaves correctly [v3]

2021-07-15 Thread Pankaj Bansal
On Sat, 10 Jul 2021 16:06:18 GMT, Thiago Milczarek Sayao wrote: >> The PR approach is to set `gtk_window_set_keep_above` to true on >> APPLICATION_MODAL windows, so they will not stay behind non >> APPLICATION_MODAL windows. >> >> This is passed on WindowStage.java:198 as a mask. >> >> The

Re: RFR: 8269597: Change JavaFX release version to 18

2021-07-06 Thread Pankaj Bansal
On Tue, 29 Jun 2021 14:21:27 GMT, Kevin Rushforth wrote: > Bump the version number of JavaFX to 18. I will integrate this immediately > after forking the `jfx17` stabilization branch, which is scheduled for > Thursday, July 8, 2021 at 16:00 UTC. > > ~~Leaving it as `Draft` for now. I'll make

Re: RFR: 8269429: Linux: Only the last APPLICATION_MODAL window behaves correctly [v2]

2021-07-02 Thread Pankaj Bansal
On Tue, 29 Jun 2021 21:58:36 GMT, Thiago Milczarek Sayao wrote: >> The PR approach is to set `gtk_window_set_keep_above` to true on >> APPLICATION_MODAL windows, so they will not stay behind non >> APPLICATION_MODAL windows. >> >> This is passed on WindowStage.java:198 as a mask. >> >> The

Re: RFR: 8231558: [macos] Platform.exit causes assertion error on macOS 10.15 or later [v2]

2021-06-28 Thread Pankaj Bansal
On Mon, 28 Jun 2021 12:27:34 GMT, Kevin Rushforth wrote: >> This is a fix for the assertion error message that is printed to the console >> on macOS 10.15 or later when an application calls `Platform.exit` while a >> `Stage` is showing. >> >> The root cause is a latent bug in the JavaFX glass

Re: RFR: 8231558: [macos] Platform.exit causes assertion error on macOS 10.15 or later

2021-06-27 Thread Pankaj Bansal
On Tue, 22 Jun 2021 20:42:48 GMT, Kevin Rushforth wrote: > This is a fix for the assertion error message that is printed to the console > on macOS 10.15 or later when an application calls `Platform.exit` while a > `Stage` is showing. > > The root cause is a latent bug in the JavaFX glass code

Re: RFR: 8269424: Some SuppressWarnings annotations can be more localized

2021-06-27 Thread Pankaj Bansal
On Sat, 26 Jun 2021 13:01:15 GMT, Kevin Rushforth wrote: > This is a follow-on fix to > [JDK-8264139](https://bugs.openjdk.java.net/browse/JDK-8264139), which added > `@SuppressWarning` annotations to usages of deprecated security manager > methods. @wangweij noticed that there was one

Re: RFR: 8239138: StyleManager should use a BufferedInputStream [v4]

2021-05-31 Thread Pankaj Bansal
On Mon, 31 May 2021 06:37:40 GMT, Ambarish Rapte wrote: >> `StyleManager.calculateCheckSum()` uses a raw InputStream as the input to a >> `DigestInputStream` and reads one byte at a time. This is slower in >> performance and should be changed, either to use `BufferedInputStream` or >> read

Re: RFR: 8267892: Add .gitattributes to repo

2021-05-28 Thread Pankaj Bansal
On Thu, 27 May 2021 22:14:51 GMT, Kevin Rushforth wrote: > This fix adds a `.gitattributes` file to prevent git from replacing line > endings if the global `.gitconfig` file on the client system is configured > with core.autocrlf = true (which it is by default when using the native Git > for

Re: RFR: 8252783: Remove the css Selector and ShapeConverter constructors

2021-05-21 Thread Pankaj Bansal
On Fri, 21 May 2021 11:48:21 GMT, Ajit Ghaisas wrote: > The javafx.css.Selector and javafx.css.converter.ShapeConverter constructors > were deprecated for removal in openjfx16. > This PR removes these constructors (targeted for openjfx17). Marked as reviewed by pbansal (Committer).

Re: RFR: 8264219: tools/scripts/build.ps1 is out of date and no longer works

2021-05-18 Thread Pankaj Bansal
On Sat, 8 May 2021 14:13:34 GMT, Kevin Rushforth wrote: > As noted in PR #212 the unused `tools/scripts/build.ps1` script no longer > works. This script was added in support of the Appveyor builds in the old > `javafxports/openjdk-jfx` sandbox repo, which haven't been used in nearly two >

Re: RFR: 8266516: One label typo in the properties for bi-directional text

2021-05-13 Thread Pankaj Bansal
On Thu, 13 May 2021 09:21:10 GMT, Manukumar V S wrote: > A typo in one of the labels of Bidi text has been corrected. This is located > in Samples > Controls > Text > Bidi Marked as reviewed by pbansal (Committer). - PR: https://git.openjdk.java.net/jfx/pull/500

Re: RFR: 8266757: Add entry for jdk-12_doc-all.zip to gradle/verification-metadata.xml

2021-05-11 Thread Pankaj Bansal
On Fri, 7 May 2021 17:30:37 GMT, Kevin Rushforth wrote: > As indicated in JBS this PR adds a missing entry for the JDK 12 API docs zip > bundle for javadoc offline processing. This missing entry is causing a build > failure on my system (which will soon propagate to our CI builds). Marked as

Re: RFR: 8210199: [linux / macOS] fileChooser can't handle emojis

2021-05-06 Thread Pankaj Bansal
On Wed, 21 Apr 2021 10:42:04 GMT, Jose Pereda wrote: > Both `GlassDialogs.m` for macOS and `GlassCommonDialogs.c` for Linux use UTF8 > encoding for the file names selected via native FileChooser, and this will > fail if there are emojis in the file name. > > This PR uses the same approach as

Re: RFR: 8210199: [linux / macOS] fileChooser can't handle emojis

2021-05-06 Thread Pankaj Bansal
On Wed, 21 Apr 2021 10:42:04 GMT, Jose Pereda wrote: > Both `GlassDialogs.m` for macOS and `GlassCommonDialogs.c` for Linux use UTF8 > encoding for the file names selected via native FileChooser, and this will > fail if there are emojis in the file name. > > This PR uses the same approach as

Re: RFR: 8265277: SkinBase::registerChangeListener​ missing '@since 9' javadoc tag

2021-05-06 Thread Pankaj Bansal
On Thu, 6 May 2021 10:22:13 GMT, Ajit Ghaisas wrote: > Please review a very simple fix that adds a missing javadoc tag. Marked as reviewed by pbansal (Committer). - PR: https://git.openjdk.java.net/jfx/pull/487

Re: RFR: 8260528: Clean glass-gtk sizing and positioning code [v25]

2021-04-27 Thread Pankaj Bansal
On Wed, 10 Mar 2021 18:23:24 GMT, Thiago Milczarek Sayao wrote: >> This is a new approach to rewrite parts of gtk glass backend to be more >> clean. >> >> I will provide small "manageable" PR to incrementally make the backend >> better. >> >> This PR adresses cleanup of the Size and

Re: RFR: 8265031: Change default macOS min version for x86_64 to 10.12 and aarch64 to 11.0 [v2]

2021-04-14 Thread Pankaj Bansal
On Wed, 14 Apr 2021 12:40:29 GMT, Kevin Rushforth wrote: >> As noted in the JBS bug, the minimum macOS version on which JavaFX will run >> is currently set to 10.10 in `mac.gradle`. macOS 10.10 is many years out of >> support, so we should update this minimum. Further, macOS / aarch64 (aka >>

Re: RFR: 8263169: [macos] JavaFX windows open as tabs when system preference for documents is set

2021-04-06 Thread Pankaj Bansal
On Wed, 24 Mar 2021 13:38:27 GMT, Kevin Rushforth wrote: > If the macOS system settings for opening documents as tabs is set to > "Always", then all JavaFX windows, including Dialogs, are opened as tabs, > unless they are child windows (that is, a Window with an owner). > > This is a real

Re: RFR: 8260528: Clean glass-gtk sizing and positioning code

2021-03-24 Thread Pankaj Bansal
On Sun, 21 Mar 2021 00:31:35 GMT, Thiago Milczarek Sayao wrote: >> Looks good now. > > Testing: > > **master** > ![master](https://user-images.githubusercontent.com/30704286/111889893-6e793f80-89c3-11eb-8f38-640e8123794c.png) > > **tsayao:glass_gtk_new_position_and_size** >

Re: RFR: 8260468: Wrong behavior of LocalDateTimeStringConverter [v2]

2021-02-23 Thread Pankaj Bansal
On Wed, 10 Feb 2021 02:24:57 GMT, Nir Lisker wrote: >> Fixes a mutability issue for `LocalDateTimeStringConverter` (and >> `LocalDateStringConverter`) where the chronology can change during the >> lifetime of the instance and cause an inconsistent state. The following >> changes were made: >>

Integrated: 8248126: JavaFX ignores HiDPI scaling settings on some linux platforms

2021-02-15 Thread Pankaj Bansal
On Sun, 7 Feb 2021 11:33:13 GMT, Pankaj Bansal wrote: > JavaFX ignores the HiDPI scaling settings on Fedora 32 and Ubuntu 20.04. > > The scale detection in JavaFX assumes that the "scaling-factor" setting in > "org.gnome.desktop.interface" has the correct Hi-D

RFR: 8248126: JavaFX ignores HiDPI scaling settings on some linux platforms

2021-02-09 Thread Pankaj Bansal
JavaFX ignores the HiDPI scaling settings on Fedora 32 and Ubuntu 20.04. The scale detection in JavaFX assumes that the "scaling-factor" setting in "org.gnome.desktop.interface" has the correct Hi-DPI setting. But this not true for some systems and "scaling-factor" has value of 0. JavaFX should

Re: RFR: 8259046: ViewPainter.ROOT_PATHS holds reference to Scene causing memory leak

2021-02-08 Thread Pankaj Bansal
On Wed, 27 Jan 2021 13:31:45 GMT, Kevin Rushforth wrote: > Prism implements a dirty region optimization, where in many cases, only part > of the scene graph is re-rendered when something changes. In support of this, > the `ViewPainter` class in the Quantum Toolkit keeps an array of node paths,

Re: RFR: 8259680: Need API to query states of CAPS LOCK and NUM LOCK keys [v4]

2021-01-30 Thread Pankaj Bansal
On Fri, 29 Jan 2021 13:19:00 GMT, Kevin Rushforth wrote: >> The JavaFX API does not provide a way to get the state of CAPS LOCK or NUM >> LOCK on the keyboard. Being able to read the lock state would allow an >> application to inform the user that caps lock was enabled for passwords or >>

Re: RFR: 8236651: Simplify and update glass gtk backend

2021-01-13 Thread Pankaj Bansal
On Fri, 12 Jun 2020 20:22:12 GMT, Thiago Milczarek Sayao wrote: >>> I had used two compilation parameters to limit Gtk on 3.8 (so it would >>> generate error if any symbol > 3.8 were used). But that does not seem to >>> work on 18.04, so I removed it. >> >> Good. I was going to ask you about

Re: RFR: 8236651: Simplify and update glass gtk backend

2021-01-13 Thread Pankaj Bansal
On Sun, 14 Jun 2020 06:49:42 GMT, Pankaj Bansal wrote: >> I have investigated the Tab Pane Drag Test and it works manually. >> >> import javafx.application.Application; >> import javafx.scene.Scene; >> import javafx.scene.control.Tab; >> import jav

Re: RFR: 8236651: Simplify and update glass gtk backend

2021-01-13 Thread Pankaj Bansal
On Wed, 10 Jun 2020 13:11:29 GMT, Thiago Milczarek Sayao wrote: >>> I am running a full test using GTK 3 on Ubuntu 20.04 and will publish >>> results. I will later do the same for Oracle Linux 7.7. >>> >>> One thing to note is that this new GTK pipeline doesn't run on Ubuntu >>> 16.04. I get

Re: RFR: 8236651: Simplify and update glass gtk backend

2021-01-13 Thread Pankaj Bansal
On Fri, 12 Jun 2020 11:55:47 GMT, Pankaj Bansal wrote: >> I have run the test on OL82 on updated code. Following are the results. I >> will rerun this on Ubuntu 18.04 and get back with the results >> > src="https://user-images.githubusercontent.com/6153953/844698

Re: RFR: 8236651: Simplify and update glass gtk backend

2021-01-13 Thread Pankaj Bansal
On Fri, 12 Jun 2020 05:56:41 GMT, Pankaj Bansal wrote: >> Here is the result on Ubuntu 20.04 with the latest changes: >> >> ![image](https://user-images.githubusercontent.com/30704286/84271590-abdea180-ab02-11ea-9d2d-dbca39755db0.png) >> >> Some tests seem

Re: RFR: 8236651: Simplify and update glass gtk backend

2021-01-13 Thread Pankaj Bansal
On Fri, 3 Apr 2020 23:41:49 GMT, Thiago Milczarek Sayao wrote: >> I see a lot of work going into this. >> >> In order for this to progress beyond the prototype or concept phase, we will >> need to have a discussion on the openjfx-dev mailing list in a separate >> email thread that is not

Re: [jfx16] RFR: 8259639: GitHub actions: build fails on Linux due to missing apt-get update

2021-01-12 Thread Pankaj Bansal
On Tue, 12 Jan 2021 17:01:40 GMT, Kevin Rushforth wrote: > Simple fix to the `submit.yml` script to run `apt-get update` prior to > installing needed packages on Linux. Without this, the request to install > packages can fail to find the requested pacakges due to an out-of-date cache. > >

Re: [jfx16] RFR: 8256362: JavaFX must warn when the javafx.* modules are loaded from the classpath

2021-01-09 Thread Pankaj Bansal
On Tue, 17 Nov 2020 18:10:13 GMT, Kevin Rushforth wrote: > This fix adds documentation and a warning to clarify that loading the JavaFX > modules from the classpath is not a supported configuration. This will not > affect deployments that put the JavaFX modular jars on the classpath, but >

Re: RFR: 8259277: Change JavaFX release version to 17

2021-01-05 Thread Pankaj Bansal
On Wed, 6 Jan 2021 00:09:52 GMT, Kevin Rushforth wrote: > Bump the version number of JavaFX to 17. I will integrate this immediately > after forking the `jfx16` stabilization branch. Marked as reviewed by pbansal (Committer). - PR: https://git.openjdk.java.net/jfx/pull/371

Re: RFR: 8254013: gradle test should run all test classes even if they don't end with "Test"

2020-10-28 Thread Pankaj Bansal
On Thu, 22 Oct 2020 11:45:08 GMT, Kevin Rushforth wrote: > The test targets in `build.gradle` are set up to run only classes whose name > ends with exactly `Test`. A test class named `RunMyTest.java` will be run, > but a test called `CheckSomething.java` will not be. This was done because >

Integrated: 8213573: MouseLocationOnScreenTest fails intermittently

2020-10-23 Thread Pankaj Bansal
On Thu, 22 Oct 2020 14:22:32 GMT, Pankaj Bansal wrote: > The test test.robot.javafx.scene.MouseLocationOnScreenTest fails > intermittently on Windows and Mac system though it fails on Windows more > often than Mac. > > The test uses robot to move the mouse at different posi

Re: RFR: 8213573: MouseLocationOnScreenTest fails intermittently [v2]

2020-10-23 Thread Pankaj Bansal
On Fri, 23 Oct 2020 13:33:35 GMT, Kevin Rushforth wrote: >> Pankaj Bansal has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fixing review comments > > tests/system/src/test/java/test/robot/javafx/scene/

Re: RFR: 8213573: MouseLocationOnScreenTest fails intermittently [v2]

2020-10-23 Thread Pankaj Bansal
is passing in less than 50 seconds on all > platforms. Following command can be used to run the test > gradle --continue --info -PFULL_TEST=true -PUSE_ROBOT=true > :systemTest:cleanTest :systemTests:test --tests > test.robot.javafx.scene.MouseLocationOnScreenTest Pankaj Bansal has upd

RFR: 8213573: MouseLocationOnScreenTest fails intermittently

2020-10-23 Thread Pankaj Bansal
The test test.robot.javafx.scene.MouseLocationOnScreenTest fails intermittently on Windows and Mac system though it fails on Windows more often than Mac. The test uses robot to move the mouse at different positions on screen using mouseMove and then validates the mouse coordinates by

Integrated: 8247494: Test failure in ImageRaceTest on some systems

2020-10-22 Thread Pankaj Bansal
On Thu, 22 Oct 2020 12:29:51 GMT, Pankaj Bansal wrote: > The test test.com.sun.javafx.image.impl.ImageRaceTest is fails intermittently > in linux > > This is caused by use of Thread.yield. Thread.yield is used to pause the > current thread for some time. It gives a hint to t

RFR: 8247494: Test failure in ImageRaceTest on some systems

2020-10-22 Thread Pankaj Bansal
The test test.com.sun.javafx.image.impl.ImageRaceTest is fails intermittently in linux This is caused by use of Thread.yield. Thread.yield is used to tell pause the current thread for some time. It gives a hint to thread scheduler that the current thread should pause and other threads with

Re: RFR: 8252446: Screen.getScreens() is empty sometimes

2020-09-16 Thread Pankaj Bansal
On Thu, 3 Sep 2020 15:18:06 GMT, Kevin Rushforth wrote: > As noted in the bug report, we get a pair of change events every time the > list of screens changes. First, a change is > sent with an empty list of screens and then a change is sent with the new > list of screens. This happens whenever

Re: RFR: 8236651: Simplify and update glass gtk backend

2020-06-14 Thread Pankaj Bansal
On Sun, 14 Jun 2020 06:49:42 GMT, Pankaj Bansal wrote: >> I have investigated the Tab Pane Drag Test and it works manually. >> >> import javafx.application.Application; >> import javafx.scene.Scene; >> import javafx.scene.control.Tab; >> import jav

Re: RFR: 8236651: Simplify and update glass gtk backend

2020-06-14 Thread Pankaj Bansal
On Fri, 12 Jun 2020 20:22:12 GMT, Thiago Milczarek Sayao wrote: >>> I had used two compilation parameters to limit Gtk on 3.8 (so it would >>> generate error if any symbol > 3.8 were used). >>> But that does not seem to work on 18.04, so I removed it. >> >> Good. I was going to ask you about

Re: RFR: 8236651: Simplify and update glass gtk backend

2020-06-12 Thread Pankaj Bansal
On Fri, 12 Jun 2020 11:55:47 GMT, Pankaj Bansal wrote: >> I have run the test on OL82 on updated code. Following are the results. I >> will rerun this on Ubuntu 18.04 and get back >> with the results > src="https://user-images.githubusercontent.com/6153953/844698

Re: RFR: 8236651: Simplify and update glass gtk backend

2020-06-12 Thread Pankaj Bansal
On Fri, 12 Jun 2020 05:56:41 GMT, Pankaj Bansal wrote: >> Here is the result on Ubuntu 20.04 with the latest changes: >> >> ![image](https://user-images.githubusercontent.com/30704286/84271590-abdea180-ab02-11ea-9d2d-dbca39755db0.png) >> >> Some tests seem

Re: RFR: 8236651: Simplify and update glass gtk backend

2020-06-12 Thread Pankaj Bansal
On Wed, 10 Jun 2020 13:11:29 GMT, Thiago Milczarek Sayao wrote: >>> I am running a full test using GTK 3 on Ubuntu 20.04 and will publish >>> results. I will later do the same for Oracle >>> Linux 7.7. >>> One thing to note is that this new GTK pipeline doesn't run on Ubuntu >>> 16.04. I get

Re: RFR: 8236651: Simplify and update glass gtk backend

2020-06-06 Thread Pankaj Bansal
On Fri, 3 Apr 2020 23:41:49 GMT, Thiago Milczarek Sayao wrote: >> I see a lot of work going into this. >> >> In order for this to progress beyond the prototype or concept phase, we will >> need to have a discussion on the >> openjfx-dev mailing list in a separate email thread that is not

Re: [Rev 04] RFR: 8225571: Port DND source to use GTK instead of GDK

2020-01-01 Thread Pankaj Bansal
On Thu, 2 Jan 2020 06:08:25 GMT, Thiago Milczarek Sayao wrote: >> https://bugs.openjdk.java.net/browse/JDK-8225571 >> >> To run tests (on the root of the source tree): >> ./gradlew apps >> java @build/run.args -cp apps/toys/DragDrop/dist/DragDrop.jar >> dragdrop.DragDropWithControls >> java

RE: Findings on JDK-8211302

2019-05-13 Thread Pankaj Bansal
use the problem happens before. But I suspect when the gdk_drag_context_get_selected_action(event->context) returning ZERO problem is fixed, the need of gdk_drag_drop_done() will be the problem. Cheers. ____ De: Pankaj Bansal Enviado: segunda-feira, 13 de maio de 2019

RE: Findings on JDK-8211302

2019-05-13 Thread Pankaj Bansal
Hello Thiago, This solution was proposed by one of the engineers in Oracle sometime back and we have tested it. This does not seem to solve the issue. If you wish to try this, please take the patch [1], which is attached in the bug JDK-8211302. This patch neatly defines the function depending

RE: Drag & Drop errors on Linux/Ubuntu

2019-03-28 Thread Pankaj Bansal
Hello Dragos, There are some known issues with Drag & Drop on Ubuntu from JavaFX11 as gtk3 has been made default. There is a bug filled for the same in JBS JDK-8211302. Drag & Drop does not work, but I don’t get the error you are getting. Can you please create a small reproducer to look at.

[12] JDK-8211280: [Linux] JavaFX build fails on Linux with gcc8

2018-12-17 Thread Pankaj Bansal
Hi Kevin/Murali, Please review the fix. JBS: https://bugs.openjdk.java.net/browse/JDK-8211280 webrev: http://cr.openjdk.java.net/~pbansal/8211280/webrev.00/ Regards, Pankaj

[12] RFR: JDK-8208070: [macOS] Write a manual test for fix done for JDK-8191885

2018-12-11 Thread Pankaj Bansal
Hi Kevin/Murali, Please review the fix. JBS: https://bugs.openjdk.java.net/browse/JDK-8208070 webrev: http://cr.openjdk.java.net/~pbansal/8208070/webrev.00/ Regards, Pankaj

[8u-backport] JDK-8212147: [JavaFX] Conditional support for GTK 3 on Linux

2018-10-23 Thread Pankaj Bansal
Hi All, Please review the patch for 8u-dev backport for HYPERLINK "https://bugs.openjdk.java.net/browse/JDK-8087516"JDK-8087516. It adds conditional support for gtk3. As part of the enhancement backport, we will be backporting 18 more bugs fixes done for GTK3 related issues since jdk9.

RE: [8u-backport] JDK-8087516 : [JavaFX] Conditional support for GTK 3 on Linux

2018-10-12 Thread Pankaj Bansal
, October 11, 2018 9:17 PM To: Johan Vos; Pankaj Bansal Cc: openjfx-dev@openjdk.java.net Subject: Re: [8u-backport] JDK-8087516 : [JavaFX] Conditional support for GTK 3 on Linux I used the wrong bug ID below. Here is the right one: 8189689: JavaFX build fails with gcc 6 [1] Pankaj will send

[RFR][8u-dev] : JDK-8189689 : JavaFX build fails with gcc 6

2018-10-11 Thread Pankaj Bansal
Hi Kevin, Please review the backport fix for HYPERLINK "https://bugs.openjdk.java.net/browse/JDK-8189689"JDK-8189689. Webrev: http://cr.openjdk.java.net/~pbansal/8189689/webrev.00/ Thanks, Pankaj

RE: [8u-backport] JDK-8087516 : [JavaFX] Conditional support for GTK 3 on Linux

2018-10-11 Thread Pankaj Bansal
  From: Johan Vos [mailto:johan@gluonhq.com] Sent: Thursday, October 11, 2018 4:05 PM To: Pankaj Bansal Cc: Kevin Rushforth; openjfx-dev@openjdk.java.net Subject: Re: [8u-backport] JDK-8087516 : [JavaFX] Conditional support for GTK 3 on Linux   Hi Pankaj,   What gcc version did you use

RE: [8u-backport] JDK-8087516 : [JavaFX] Conditional support for GTK 3 on Linux

2018-10-10 Thread Pankaj Bansal
rom: Kevin Rushforth Sent: Thursday, October 4, 2018 7:41 AM To: Pankaj Bansal; openjfx-dev@openjdk.java.net Subject: Re: [8u-backport] JDK-8087516 : [JavaFX] Conditional support for GTK 3 on Linux I debugged this offline earlier today, and it looks related to a collision in the glib library. As

[8u-backport] JDK-8087516 : [JavaFX] Conditional support for GTK 3 on Linux

2018-10-03 Thread Pankaj Bansal
Hi All, Please review the patch for 8u-dev backport for HYPERLINK "https://bugs.openjdk.java.net/browse/JDK-8087516"JDK-8087516. It adds conditional support for gtk3. Along with the enhancement, following bug fixes have also been included in the backport webrev 1.

[11] JDK-8204336 : Platform.exit() throws ISE when a nested event loop is active

2018-07-12 Thread Pankaj Bansal
Hi Kevin, Murali, Please review this fix, Webrev: http://cr.openjdk.java.net/~pbansal/8204336/webrev.00/ JBS: https://bugs.openjdk.java.net/browse/JDK-8204336 Regards, Pankaj

[11] JDK-8191885 : [MacOS] JavaFX main window not resizable coming back from full screen mode in MacOS

2018-07-03 Thread Pankaj Bansal
Hi Kevin, Murali & Ajit, Please review this fix, Webrev: http://cr.openjdk.java.net/~pbansal/8191885/webrev.00/ JBS: https://bugs.openjdk.java.net/browse/JDK-8191885 Regards, Pankaj

[11] JDK-8204635: [Linux] getMouseX, getMouseY in gtk GlassRobot.cpp ignore the HiDPI scale

2018-06-13 Thread Pankaj Bansal
Hi Kevin & Murali, Please review this fix, Webrev: http://cr.openjdk.java.net/~pbansal/8204635/webrev.00/ JBS: https://bugs.openjdk.java.net/browse/JDK-8204635 Regards, Pankaj

RE: [11] JDK-8196031: FX Robot mouseMove fails on Windows 10 1709 with HiDPI

2018-06-11 Thread Pankaj Bansal
Hello Kevin, Thanks for the review. I have incorporated all the review comments. Please have a look. webrev: http://cr.openjdk.java.net/~pbansal/8196031/webrev.01/ Regards, Pankaj Bansal -Original Message- From: Kevin Rushforth Sent: Saturday, June 9, 2018 1:15 AM To: Pankaj Bansal

[11] JDK-8196031: FX Robot mouseMove fails on Windows 10 1709 with HiDPI

2018-06-07 Thread Pankaj Bansal
Hi Kevin & Murali, Please review this fix, Webrev: http://cr.openjdk.java.net/~pbansal/8196031/webrev.00/ JBS: https://bugs.openjdk.java.net/browse/JDK-8196031 Regards, Pankaj

[11] JDK-8199614 : [macos] ImageCursor.getBestSize() throws NullPointerException

2018-05-23 Thread Pankaj Bansal
Hi Kevin & Ajit, Please review this fix, Webrev: http://cr.openjdk.java.net/~pbansal/8199614/webrev.00/ JBS: https://bugs.openjdk.java.net/browse/JDK-8199614 Regards, Pankaj

[11] JDK-8163795 : [Windows] Remove call to StretchBlt in native GetScreenCapture method

2018-05-15 Thread Pankaj Bansal
Hi All, Request to review this fix. Webrev: http://cr.openjdk.java.net/~pbansal/8163795/webrev.00/ Bug: https://bugs.openjdk.java.net/browse/JDK-8163795 Regards, Pankaj Bansal