ModelCreator icon indicating copy to clipboard operation
ModelCreator copied to clipboard

Cannot open dropdown menus on Linux

Open feldim2425 opened this issue 8 years ago • 4 comments

If I try to open a dropdown menu it closes immediately after it shows up. Sometimes it stays open. I tested it on the menu in Rotation -> Axis and Faces -> Side

I use: oracle java 8 Ubuntu 16.04

feldim2425 avatar Aug 04 '16 17:08 feldim2425

Same issue on OpenJDK 8, under KDE. Window appears to instantly unfocus, closing popup menu.

ZNixian avatar Sep 25 '16 10:09 ZNixian

Found the problem.

In the model creator class, on line 136, there is a call to canvas.requestFocusInWindow(). This closes all dropdown menus, along with a few other things. On windows, this is only called when the user has left and then refocused the main window, but on Linux, it happens when a user opens the dropdown menu, too. Removing that call fixes the problem.

TL/DR: Fixed Jar here: https://znix.xyz/files/ModelCreator-patched.jar

ZNixian avatar Sep 25 '16 10:09 ZNixian

@ZNixian Can´t you create a pull request of it?

AndersBillLinden avatar Sep 27 '16 17:09 AndersBillLinden

I use NetBeans, and can't seem to get it to build. I was able to use a game engine I wrote to load OpenGL, but that obviously wouldn't work for a PR. Also, I know what is causing the problem, but just disabling it seems like it might change something else. I'll have a closer look at it, and then might end up sending off a PR.

ZNixian avatar Sep 27 '16 22:09 ZNixian