On Mon, Jan 19, 2015 at 05:57:43PM -0800, Bill Spitzak wrote:
>
>
> On 01/12/2015 09:14 AM, Giulio Camuffo wrote:
>
> >+static bool
> >+weston_wm_window_inactive(struct weston_wm_window *window)
> >+{
> >+struct weston_wm *wm = window->wm;
> >+
> >+return window->type == wm->atom.net_wm_
On 01/12/2015 09:14 AM, Giulio Camuffo wrote:
+static bool
+weston_wm_window_inactive(struct weston_wm_window *window)
+{
+ struct weston_wm *wm = window->wm;
+
+ return window->type == wm->atom.net_wm_window_type_tooltip ||
+ window->type == wm->atom.net_wm_window_typ
Some X clients create popup or tooltips windows as top level, without
setting them as override redirect or as transient. Since we don't want
to take the focus away from a surface when one of its popup is opened,
check the _NET_WM_WINDOW_TYPE of the X surfaces being mapped and set
them as inactive i