Skip to content
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

Floating Emacs frame doesn't want to be centered. #1806

Closed
mkaito opened this issue Jul 19, 2015 · 4 comments
Closed

Floating Emacs frame doesn't want to be centered. #1806

mkaito opened this issue Jul 19, 2015 · 4 comments

Comments

@mkaito
Copy link

mkaito commented Jul 19, 2015

i3faq post for reference: https://faq.i3wm.org/question/6314/floating-emacs-frames-arent-centered/

i3 centers new floating windows by default. Except for Emacs frames. Those are stuck to the top left. I've triple checked the emacs docs and my dotemacs, and as far as I can tell, this should not be happening.

To be more specific, the default-frame-alist variable contains default parameters for new frames. It does not contain the keys top or left in my config. According to the emacs docs, this should cause the window manager to do whatever it does by default.

To test this yourself, put this in your .i3/config:

for_window [class="^Emacs$" instance="^floating$"] floating enable

And try:

emacs --geometry 50x50+200+200 --name floating

Or maybe:

emacs --daemon
emacsclient -c -F '((name . "floating") (width . 50) (height . 50))' some.file

Edit: Here's a log file of me reproducing the observed behaviour. It's probably much longer than necessary, but a search for "personal-org" will get you to where the interesting bits happen.

http://logs.i3wm.org/logs/5742636757417984.bz2

@i3bot
Copy link

i3bot commented Jul 19, 2015

I don’t see a version number. Could you please copy & paste the output of i3 --version into this issue?

@mkaito
Copy link
Author

mkaito commented Jul 19, 2015

# i3 --version
i3 version 4.10.2 (2015-04-16, branch "4.10.2") © 2009-2014 Michael Stapelberg and contributors

@mkaito
Copy link
Author

mkaito commented Jul 31, 2015

I have not changed my config. I have not updated i3. But it works just fine now. I have absolutely no idea what might be at fault... Interesting. I'll close this issue, since I'm no longer able to reproduce.

@mkaito mkaito closed this as completed Jul 31, 2015
@QiangF
Copy link

QiangF commented Jan 7, 2021

@mkaito I think you should change instance=floating to title=floating

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

No branches or pull requests

4 participants