File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,11 @@ by this function."
180
180
(remove-hook 'window-configuration-change-hook #'cwm-center-windows )
181
181
(remove-hook 'window-size-change-functions #'cwm-center-windows-frame )
182
182
(cwm-center-windows)
183
- (set-frame-parameter nil 'internal-border-width 0 )
183
+ (set-frame-parameter
184
+ nil
185
+ 'internal-border-width
186
+ (or (alist-get 'internal-border-width default-frame-alist)
187
+ 0 ))
184
188
(cwm-unbind-fringe-mouse-events))
185
189
186
190
(defun cwm-center-windows-frame (frame )
@@ -226,8 +230,8 @@ by this function."
226
230
0 ))
227
231
0 ))
228
232
(ratio (/ (* n cwm-left-fringe-ratio) 100 ))
229
- (left-width (* pixel (if (> n 0 ) (+ n ratio) n)))
230
- (right-width (* pixel (if (> n 0 ) (- n ratio) n))))
233
+ (left-width (and mode-active-p ( * pixel (if (> n 0 ) (+ n ratio) n) )))
234
+ (right-width (and mode-active-p ( * pixel (if (> n 0 ) (- n ratio) n) ))))
231
235
`(, left-width . , right-width )))
232
236
233
237
(defun cwm-toggle-bind-fringe-mouse-events (&optional bind direction-command-alist )
You can’t perform that action at this time.
0 commit comments