use xwayland check for clients when checking whether to reset focus to root

checking base pixmap returns false for xwayland clients
This commit is contained in:
Mike Blumenkrantz 2017-06-30 10:25:23 -04:00
parent 69c85fc1aa
commit 836845a615
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ _e_comp_x_focus_check(void)
focused = e_client_focused_get();
/* if there is no new focused or it is a non-X client,
* focus comp canvas on focus-out */
if ((!focused) || (e_pixmap_type_get(focused->pixmap) != E_PIXMAP_TYPE_X))
if ((!focused) || (!e_client_has_xwindow(focused)))
{
focus_canvas_time = ecore_x_current_time_get();
focus_time = 0;