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

Window insets/gaps vary between renderers on KDE (Linux) #393

Closed
processing-bot opened this issue Feb 4, 2022 · 2 comments
Closed

Window insets/gaps vary between renderers on KDE (Linux) #393

processing-bot opened this issue Feb 4, 2022 · 2 comments
Labels
has attachment Attachment was not transfered from GitLab

Comments

@processing-bot
Copy link
Collaborator

Created by: bsolos

Description

The sketch window looks weird, with the appearance changing when you change the renderer.
Sample sketch code:

void setup() {
  size(800, 600, /* RENDERER */); 
}

void draw() {
  background(0);
  triangle(400, 100, 200, 500, 600, 500);
}

Expected Behavior

The window would look normally

Current Behavior

No renderer argument

White bars on the right and bottom sides of the window
Screenshot_20220204_125254

P2D

No white bars, but window controls seem offset
Screenshot_20220204_125438

P3D

Window controls seem offset, just like P2D
Screenshot_20220204_125857

FX2D

I have not been able to test this on 4.0b4, because it does not see the JavaFX library installed from the contribution manager. On 4.0b2 the window controls looked normal and there were no white bars, but you could change the window size and there was a maximize button.

Steps to Reproduce

  1. Download Processing 4.0b4 on Debian Testing (bookworm) with KDE
  2. Run the sample sketch with different renderers

Your Environment

  • Processing version: 4.0b4
  • Operating System and OS version: Debian GNU/Linux Testing (bookworm) with KDE Plasma 5.23.5 and KDE Frameworks 5.88.0
  • Other information: Proprietary nVidia drivers for GP106 (1060) 470.103.01. KDE theme: Breeze Dark.
@processing-bot
Copy link
Collaborator Author

Created by: benfry

Unfortunately I think we're at the mercy of the window manager here… The difference in behavior is just how the various renderers interact with the underlying platform, and the various WMs on Linux introduce a lot of quirks like this.

To get JavaFX working, you'll need beta 5 (posted within the last day), which is needed for the most recent JavaFX release due to the new windowXxxx() methods and event handlers.

@Stefterv
Copy link
Collaborator

Fixed in #928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has attachment Attachment was not transfered from GitLab
Projects
None yet
Development

No branches or pull requests

2 participants