Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

[BUG] OS X Cursor #4

Open
jfpiv opened this issue Jun 22, 2016 · 6 comments
Open

[BUG] OS X Cursor #4

jfpiv opened this issue Jun 22, 2016 · 6 comments
Labels

Comments

@jfpiv
Copy link
Contributor

jfpiv commented Jun 22, 2016

There is a bug with the cursor on OS X. Sometimes when entering the client, a resize cursor appears rather than the default cursor. This does not appear to be a problem on Windows.

os x cursor bug
(captured with phone as OS X screenshot does not include cursor)

@alexanderhenne
Copy link
Member

Does the bug disappear after commenting out new ComponentBorderResizer(frame); in the Client class?

@jfpiv
Copy link
Contributor Author

jfpiv commented Jun 22, 2016

Yes, it does. But I can no longer resize the client.

@jfpiv
Copy link
Contributor Author

jfpiv commented Jun 22, 2016

Adding this line of code to the Client constructor fixes the problem for me:

framePanel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));

@alexanderhenne
Copy link
Member

Testing on OS X, I could reproduce this bug.

I then tried reproducing it while having added your code line, and found that hovering over the title bar sometimes spawns the resizing cursor after having resized the window an amount of times: http://i.imgur.com/pPs9q4F.gifv (No idea why the resizing cursor is abnormally large in this GIF. It's not when I'm recording).

The problem probably lies in the ComponentBorderResizer class. I did some investigation in the class but so far couldn't find a fix that wouldn't introduce the bug on Windows instead.

@jfpiv
Copy link
Contributor Author

jfpiv commented Jun 23, 2016

The same happens for me. Setting the JMenuBar's cursor appears to fix that.

frame.getJMenuBar().setCursor(new Cursor(Cursor.DEFAULT_CURSOR));

@mattthw
Copy link
Contributor

mattthw commented Jan 18, 2017

Linux here. Sometimes the resize cursor does not go away. For me it is specific to the window it happened in. So if it happens in settings the cursor will still be normal when settings is closed, but return to a resize cursor when settings is opened again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants