From 2f75d20ad4d97f41e3f0606c0de0974a5fa94aee Mon Sep 17 00:00:00 2001 From: mitch-kyle Date: Fri, 9 Dec 2022 13:52:56 -0400 Subject: [PATCH] floating windows - hide tab-line by default\ntab-line-mode is not functional as is in floating windows so hide the tab-line unless explicitly set in configuration --- exwm-floating.el | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/exwm-floating.el b/exwm-floating.el index 0bd5363..3ca67c6 100644 --- a/exwm-floating.el +++ b/exwm-floating.el @@ -299,20 +299,10 @@ context of the corresponding buffer." (frame-root-window frame))) header-line-format nil))) - (if floating-tab-line - (setq exwm--tab-line-format (or exwm--tab-line-format - tab-line-format) - tab-line-format floating-tab-line) - (if (and (not (plist-member exwm--configurations 'floating-tab-line)) - exwm--mwm-hints-decorations) - (when exwm--tab-line-format - (setq tab-line-format exwm--tab-line-format)) - ;; The mode-line need to be hidden in floating mode. - (setq frame-height (- frame-height (window-tab-line-height - (frame-root-window frame))) - exwm--tab-line-format (or exwm--tab-line-format - tab-line-format) - tab-line-format nil))) + ;; Hide tab-line by default but override with floating-tab-line. + (setq exwm--tab-line-format (or exwm--tab-line-format + tab-line-format) + tab-line-format floating-tab-line) (set-frame-size frame frame-width frame-height t) ;; Create the frame container as the parent of the frame.