From 5d6613eb9914e95e05ce8f682aa6199579939363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Mon, 16 Apr 2012 17:27:53 +0200 Subject: [PATCH] withdraw _NET_WM_STATE_DEMANDS_ATTENTION from windows which are attempted t be focus'd but cannot BUG: 232423 FIXED-IN: 4.9 REVIEW: 104620 --- client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.cpp b/client.cpp index 1c403265ec..903b581fc4 100644 --- a/client.cpp +++ b/client.cpp @@ -1779,6 +1779,8 @@ void Client::takeFocus(allowed_t) #endif if (rules()->checkAcceptFocus(input)) XSetInputFocus(display(), window(), RevertToPointerRoot, xTime()); + else + demandAttention(false); // window cannot take input, at least withdraw urgency if (Ptakefocus) sendClientMessage(window(), atoms->wm_protocols, atoms->wm_take_focus); workspace()->setShouldGetFocus(this);