constellation icon indicating copy to clipboard operation
constellation copied to clipboard

Create custom attribute dialog pops under main window on Linux v2.1.1

Open mckeowbc opened this issue 3 years ago • 7 comments

Prerequisites

  • [x] Put an X between the brackets on this line if you have done all of the following:
    • Running the latest version of Constellation
    • Attached the Support Package via Help > Support Package
    • Checked the FAQs: https://github.com/constellation-app/constellation/wiki/FAQ
    • Checked that your issue isn't already filed: https://github.com/constellation-app/constellation/issues
    • Checked that there is not already a module that provides the described functionality: https://github.com/constellation-app/constellation/wiki/Catalogue-of-Repositories

Description

On the Linux version of v2.1.1 when trying to import from a delimited file, the + buttons to add a new custom attribute brings up the dialog behind the main window. This requires moving the window each time to find the dialog. Additionally in the Ubuntu 20.10 window manager you cannot Alt-Tab to these dialogs.

Steps to Reproduce

  1. Open Constellation
  2. Select File->Import->From Delimited File...
  3. Add a source file
  4. Click on one of the + buttons under attributes to attempt to create a custom attribute.

Expected behaviour: Dialog box appears above main window

Actual behaviour: Window pops behind main window

Reproduces how often: 100%

Additional Information

OS: Ubuntu 20.10

SupportPackage-mckeowbc-2021-02-18-16-26-34.zip

mckeowbc avatar Feb 18 '21 21:02 mckeowbc

Hello @mckeowbc, thank you for your interest in our work! If you have a question about using Constellation then please have a read of our Quick Start Guide. If you are a developer then it is advised to go through the Developer Training Guide. Note that we have recently migrated to NetBeans 11 however the examples in the training guide still reference NetBeans 8.2. We are working on a new version so just bare that in mind.

github-actions[bot] avatar Feb 18 '21 21:02 github-actions[bot]

I'm yet to test if this is an issue with windows, but am working on similar code and it looks like the NewAttributeDialog.java class calls initOwner(...) with the parent window. There may be a call to something that isn't correct for Linux or the call to get the parent window is not correct. Another option which may be worth pursuing is to set the modality using initModality() to Modality.APPLICATION_MODAL which may cause the focus to be on that window even when the parent window is not set correctly.

aldebaran30701 avatar Apr 20 '21 04:04 aldebaran30701

UPDATE: Tested on Windows using NetBeans debug to launch, the dialog initially pops up on top of the window, but it is not appearing to be modal as you can select Constellation behind it. The .executable version of Constellation also displays the same behaviour.

aldebaran30701 avatar Apr 20 '21 05:04 aldebaran30701

@mckeowbc Are you able to test out #1020 to verify that it solves the problem you have experienced?

aldebaran30701 avatar Apr 27 '21 01:04 aldebaran30701

@aldebaran30701 @mckeowbc I gave it a test and I can see the dialog is opening behind Constellation but one time it came at the front.

add dialog opening behind

arcturus2 avatar May 03 '21 20:05 arcturus2

@arcturus2 you tested master, or the bugfix branch ?

aldebaran30701 avatar May 03 '21 22:05 aldebaran30701

@aldebaran30701 that was on the bugfix branch.

arcturus2 avatar Jun 02 '21 06:06 arcturus2

Hi @mckeowbc. Thank you for reporting this issue. It is fixed now, if not simply let us know and I will take a look. Cheers, Gamma

GammaVel avatar Nov 22 '22 05:11 GammaVel

Hi @mckeowbc this should make it into v2.9 and it is currently in our nightly build if you wanted to run it from https://github.com/constellation-app/constellation/actions/workflows/nightly-build.yml. Thank you again for reporting this and if you find any more issues please report them.

arcturus2 avatar Nov 27 '22 22:11 arcturus2