Skip to content

Linux: A bug with cursor capture when resizing the form. #907

Closed
@credos

Description

@credos

Hello. Thank you for your work. Tell me if there is an opportunity to get rid of the cursor bug when resizing the form in the "JFrame.setDefaultLookAndFeelDecorated(true)" mode (if you do not enable this mode, then the cursor is captured correctly). More about the problem: when you hover the mouse cursor over the edge of the shape, it takes an image, for example - NW_RESIZE_CURSOR. But when, after pressing the left mouse button, the shape size changes, the cursor begins to change arbitrarily from NW_RESIZE_CURSOR to DEFAULT_CURSOR (arrow) and back. I understand that this happens as a result of slow redrawing of the form, the cursor periodically falls on the contentPane, while changing to an arrow, but I can't figure out how to defeat it... (flatlaf-3.5.2, OpenJDK-21.0.1 X) An example of the bug is shown in the attached video.
vokoscreenNG-2024-11-06_00-14-20.webm

Activity

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

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions