emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/exwm f453664bd6: Disable splitting of floating frames (


From: ELPA Syncer
Subject: [elpa] externals/exwm f453664bd6: Disable splitting of floating frames (#76)
Date: Fri, 23 Aug 2024 15:57:56 -0400 (EDT)

branch: externals/exwm
commit f453664bd6c509a68da6e85242fe941cc64c7b5d
Author: Steven Allen <steven@stebalien.com>
Commit: GitHub <noreply@github.com>

    Disable splitting of floating frames (#76)
    
    Previously, floating frames were configured to never automatically
    split, but they could be manually split (usually by accident).
    
    * exwm-floating.el (exwm-floating--set-floating): disable splitting of
      floating windows by setting a the `split-window' window parameter to a
      function that always throws an error.
---
 exwm-floating.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/exwm-floating.el b/exwm-floating.el
index 9a7a92d3f6..ff17de2f04 100644
--- a/exwm-floating.el
+++ b/exwm-floating.el
@@ -351,6 +351,8 @@ If TILED-P is non-nil, set actions for tiled window."
       (set-window-buffer window (current-buffer)) ;this changes current buffer
       (add-hook 'window-configuration-change-hook #'exwm-layout--refresh)
       (set-window-dedicated-p window t)
+      (set-window-parameter window 'split-window
+                            (lambda (&rest _) (user-error "Floating window 
cannot be split")))
       (exwm-layout--show id window))
     (with-current-buffer (exwm--id->buffer id)
       (if (exwm-layout--iconic-state-p id)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]