X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;fp=openbox%2Fevent.c;h=b39660a6232144ea165155d06f896bfeb595649b;hb=385967b55290105f074080890d55b50d9622b89d;hp=8a52402ecc63212cc181dc39c68eb7dff63c70bd;hpb=d291a9c7aa685b6d8bd6aa70cdc543926702c301;p=chaz%2Fopenbox diff --git a/openbox/event.c b/openbox/event.c index 8a52402e..b39660a6 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1443,9 +1443,15 @@ static void event_handle_client(ObClient *client, XEvent *e) ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_ACTIVE_WINDOW message for window %s is " "missing source indication", client->title); - client_activate(client, FALSE, FALSE, TRUE, TRUE, - (e->xclient.data.l[0] == 0 || - e->xclient.data.l[0] == 2)); + /* TODO(danakj) This should use + (e->xclient.data.l[0] == 0 || + e->xclient.data.l[0] == 2) + to determine if a user requested the activation, however GTK+ + applications seem unable to make this distinction ever + (including panels such as xfce4-panel and gnome-panel). + So we are left just assuming all activations are from the user. + */ + client_activate(client, FALSE, FALSE, TRUE, TRUE, TRUE); } else if (msgtype == OBT_PROP_ATOM(NET_WM_MOVERESIZE)) { ob_debug("net_wm_moveresize for 0x%lx direction %d", client->window, e->xclient.data.l[2]);