Slowpoke101 / FTBLaunch

Launcher for the FTB Mod Pack
182 stars 140 forks source link

[Question] Disable setting the minecraft window position #942

Closed sattelbergerp closed 9 years ago

sattelbergerp commented 9 years ago

I cant label this as a question so some who can should

I added a checkbox to launch in borderless windowed (-Dorg.lwjgl.opengl.Window.undecorated=true) which works however instead of being centered on the screen so the bars are hidden off screen the window position is being forced to 0,0 causing part of the game to be off screen and windows bars across the top and left of the screen.

I tried looking through the launch code and couldn't find anything modifying the window. I couldn't find any (and don't know of any) launch arguments modifying the window position. I did a eclipse workspace search for "getLastPosition" and only fount the method declaration and the getters in AdvancedOptionsDialog.java. I also did a case-insensitive search for "getObjectProperty("lastPosition")" but only fount the call in getLastPosition().

As a last attempt i tried looking through OSUtils.java and AppUtils.java but couldn't find anything that looks like it could be used for setting a window position and as far as I know there is no way to modify other applications windows in java.​

sattelbergerp commented 9 years ago

Well i found a wrokaround see https://www.youtube.com/watch?v=648XKmIf04Q&feature=youtu.be http://pastebin.com/7fXiRtWG