lisp/gnus/gnus-notifications.el (gnus-notifications-action): Replace x-focus-frame kludge by calling gnus-select-frame-set-input-focus

This commit is contained in:
Adam Sjøgren 2015-03-08 22:45:06 +00:00 committed by Katsumi Yamaoka
parent e991af9228
commit 6b134bcba9

View file

@ -81,7 +81,7 @@ not get notifications."
(article (nth 2 group-article)))
(cond ((string= key "read")
(gnus-fetch-group group (list article))
(when (and window-system (fboundp 'x-focus-frame)) (x-focus-frame (selected-frame))))
(gnus-select-frame-set-input-focus (selected-frame)))
((string= key "mark-read")
(gnus-update-read-articles
group