Under KDE, #'frame-visible-p and #'frame-totally-visible-p will only
return nil if the frame you are querying is iconified. If it is merely on
another virtual desktop they will return t.
I'm not sure yet if this is a bug in KDE or if SXEmacs needs to be made
more "KDE-aware", but this changeset will let EMchat notifications work in
KDE.
* emchat-log.el (emchat-log): Test if the EMchat frame is focused
with #'selected-frame.
* .gitignore: Add TAG
Signed-off-by: Steve Youngs <steve@emchat.org>
"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