-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Unity killing window managers with insane window sizes #93
Conversation
Manually call X11 functions to resize windows in those cases
sorry I took so long to see this, I don't seem to get email notifications for PR on this repo? I'm going to try to figure out how to turn it on.... |
OK, tested this fix on Meakashi ep5 on my Manjaro, and it works fine now. Looking at the unity versions, am I correct in thinking chapters 1,2,3,4,5,6 are the only ones which can have this problem? Chapters which I've double checked where the fix works (and doesn't cause any other problems):
I'll go ahead and test on the other chapters as well, unless you think it's not necessary for the type of changes you made. |
I noticed these minor issues which probably aren't related to this issue, but might be. I've seen some of them before but didn't note them down anywhere. I'll raise another issue later with these items once this PR is closed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh I can't fully check this since I don't understand everything, but I tried lol
I tested on chapters 1-6 with no issues, you can merge if you're ready |
Correct. Ch 7 uses 5.6.7f1, which has a new function for setting resolutions. I can't say anything for whether it's broken or not, but you'd hope that if they rewrote it they didn't replace it with another broken one. |
I tested vanilla ch7 and ch8 just now and they work fine. From previous testing, ch9 (Rei) also works fine, so I think we're all good now. |
Unity versions ≤ 5.5.3p3 have a broken window resize function that sends uninitialized stack data to XSetWMNormalHints, which tends to not be appreciated by window managers.
Patch the function to immediately return, and reimplement it ourselves.