-
Notifications
You must be signed in to change notification settings - Fork 128
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
windows are not properly sized when moved to another screen #84
Comments
I’ve indeed wondered on numerous cases when resizing before moving would be required and haven’t personally found any of these cases. This is why I removed the secondary resize on refactor. Obviously you may have found a case and maybe this should be reinstated. What I’ve however noticed, that some apps (mainly Adobe) do not support the Accessibility API properly and do weird things that can affect resizing. If Emacs works in Slate.js, this shouldn’t be the case. Could you try out your theory? Use |
Hi, I believe I tried that and it didn't actually work. It seemed like it happened too quickly. I'll try it again when I get home. I'll also try w/ two different bindings to see if it indeed a race condition thing |
@aaronjensen Great, thanks! It’s a shame that Apple hasn’t implemented a way to set the frame in one API-call, which would solve these types of issues. |
That worked! I guess I hadn't tried exactly that. |
@aaronjensen Nice! I’ll fix this in the next release. Thanks for the extremely thorough report and debugging. It always helps. :) |
…while moving it to a smaller screen (#84)
This is now fixed in master. |
For some reason this only appears to apply to some windows. For me, emacs is one such window that cannot be moved to another screen and resized at the same time.
To repro, you need two monitors of different sizes (I have a dell 30" and a 15" Retina MBP). My laptop is to the left of my monitor and positioned about 300px down from the top of the 30"
Using this code:
Open Emacs, press cmd+ctrl+h twice. The second press should move to the other monitor, and it should only be taking half the width, but instead it maintains the same width it had on the 30" monitor.
I'm on El Capitan
Logs:
One curious thing is that once the Emacs window has moved, I cannot resize it horizontally by dragging unless I first resize it vertically and move it up so that the bottom of the window is visible. This could be a bug in Emacs, but I have a very similar config with slate.js and it does not have this problem.
For what it's worth, slate.js appears to resize the window prior to moving to the other screen.
The text was updated successfully, but these errors were encountered: