Make notifications work in KDE
[emchat] / emchat-log.el
index 87522f2..e6aacc1 100644 (file)
@@ -429,8 +429,7 @@ ID is the entity that sent MESSAGE."
   "Log message under ID.
 Put MESSAGE at the end of log buffer if OPTION is non-nil.
 Mark MESSAGE unread if MARK-UNREAD is non-nil"
-  (unless (or (eq (current-buffer) emchat-log-buffer)
-             (frame-visible-p emchat-frame))
+  (unless (eq (selected-frame) emchat-frame)
     (emchat-notify id message))
   (if (and option (buffer-live-p emchat-log-buffer))
       (with-current-buffer emchat-log-buffer