summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2024-02-10 15:49:04 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2024-02-10 15:49:04 +0000
commitcb6427623160372b597def2f91a18bcade9e3157 (patch)
tree640644a835957f760dee7ebfc622e2192b1722c1
parent9d369d79a27ab24a345fee51d053b22a08c6129d (diff)
emacs: Fix odd behavior in my/focus-frame
Calling my/focus-frame twice in a row would move the frame out of position if the frame had not been manually moved or resized before.
-rw-r--r--emacs/functions.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/functions.el b/emacs/functions.el
index fcf8b66..3e879cc 100644
--- a/emacs/functions.el
+++ b/emacs/functions.el
@@ -66,9 +66,9 @@ enabled."
"Focus FRAME."
(interactive)
(delete-other-windows)
- (modify-frame-parameters frame '((fullscreen . fullheight)
- (left . 0.5)
- (width . 100))))
+ (modify-frame-parameters frame '((height . 1.0) (width . 0.5)
+ (left . 0.5) (top . 1.0)
+ (user-position . t))))
;; Misc. Stuff