summaryrefslogtreecommitdiffhomepage
path: root/exwm.org
diff options
context:
space:
mode:
Diffstat (limited to 'exwm.org')
-rw-r--r--exwm.org6
1 files changed, 1 insertions, 5 deletions
diff --git a/exwm.org b/exwm.org
index 7bcc7c0..cd83ca3 100644
--- a/exwm.org
+++ b/exwm.org
@@ -80,11 +80,7 @@
* Buffer names
#+begin_src emacs-lisp
(defun jao-exwm--use-title-p ()
- (or (string-prefix-p "sun-awt-X11-" exwm-instance-name)
- (string= "Navigator" exwm-instance-name)
- (string= "Spotify" exwm-class-name)
- (string= "XTerm" exwm-class-name)
- (string= "Zathura" exwm-class-name)))
+ (and exwm-title (not (string-blank-p exwm-title))))
(defun jao-exwm-rename-buffer/class ()
(unless (jao-exwm--use-title-p)