Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color picker on Linux is opening behind Editor and causes it to freeze and loose the focus #5620

Closed
nebspacefarer opened this issue Mar 4, 2021 · 1 comment
Labels
bug Something is not working as expected editor Issues related to the Defold editor javafx Issue related to JavaFX in the editor

Comments

@nebspacefarer
Copy link

nebspacefarer commented Mar 4, 2021

Describe the bug
On Linux Debian the editor (1.2.179) color picker takes the focus when opened but appears behind the editor window and therefore freezes the editor completely.
Clicking multiple times on the Editor after that can causes a desktop environment crash and before that, doesn't allow to focus the editor anymore.

To Reproduce
Steps to reproduce the behavior:

  1. Open a project on Defold on Linux Debian
  2. Select a node with a color property (such as a GUI Box)
  3. Open the color picker via "Custom color..." context menu option.

Expected behavior
The color picker should open on top of the editor to avoid it to be frozen in the process.

Defold version:

  • Version 1.2.179, Channel editor-alpha

Platforms:

  • Platforms: Linux
  • OS: Debian Bullseye 11
  • Desktop Environment: Cinnamon

Minimal repro case project:
Easily reproducible with any project and a node with a Color property.

Logs:
Only error displaying when opening the color picker is this:
(java:4169): Gdk-WARNING **: 22:00:10.990: XSetErrorHandler() called with a GDK error trap pushed. Don't do that
However I suspect it is unrelated.

Workaround:
Unfocus the Editor either by Alt+Tab or by clicking on another window and focusing the Editor window shows the color picker on top and allows to unfreeze the Editor and uses the color picker without issue.
The typical definitive fix should be to make the color picker open on top of the Editor as it seems to only be a focus issue.

@nebspacefarer nebspacefarer added the bug Something is not working as expected label Mar 4, 2021
@britzl britzl added editor Issues related to the Defold editor javafx Issue related to JavaFX in the editor labels Mar 5, 2021
@britzl
Copy link
Contributor

britzl commented Nov 19, 2021

Fixed in JavaFX update 18-ea+6

@britzl britzl closed this as completed Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected editor Issues related to the Defold editor javafx Issue related to JavaFX in the editor
Projects
None yet
Development

No branches or pull requests

2 participants