Function: erc-desktop-notifications-focused-p
erc-desktop-notifications-focused-p is a byte-compiled function
defined in erc-desktop-notifications.el.gz.
Signature
(erc-desktop-notifications-focused-p MATCH)
Documentation
Return non-nil if the frame is focused and suppressed by context.
See erc-desktop-notifications-ignored-when-focused for contexts.
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-desktop-notifications.el.gz
(defun erc-desktop-notifications-focused-p (match)
"Return non-nil if the frame is focused and suppressed by context.
See `erc-desktop-notifications-ignored-when-focused' for contexts."
(and (eq (current-buffer) (window-buffer))
(cond
((erc-query-buffer-p)
(memq 'query erc-desktop-notifications-ignored-when-focused))
((erc-match-opt-current-nick-p match)
(memq 'mention erc-desktop-notifications-ignored-when-focused)))
(frame-focus-state)))