Skip to content

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

Closed

Description

@processing-bot

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.

Activity

  1. processing-bot commented on Feb 4, 2022

    @processing-bot
    CollaboratorAuthor

    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.

  2. Stefterv commented on Jan 22, 2025

    @Stefterv
    Member

    Fixed in #928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    has attachmentAttachment was not transfered from GitLab

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions