dont make mouse bindings focus windows that dont take focus from clicks
This commit is contained in:
parent
18c2737a2f
commit
59183ac234
1 changed files with 4 additions and 2 deletions
|
@ -1255,7 +1255,8 @@ void action_activate(union ActionData *data)
|
|||
{
|
||||
if (data->client.any.c) {
|
||||
if (!data->any.button || client_mouse_focusable(data->client.any.c) ||
|
||||
data->any.context != OB_FRAME_CONTEXT_CLIENT)
|
||||
(data->any.context != OB_FRAME_CONTEXT_CLIENT &&
|
||||
data->any.context != OB_FRAME_CONTEXT_FRAME))
|
||||
{
|
||||
/* if using focus_delay, stop the timer now so that focus doesn't
|
||||
go moving on us */
|
||||
|
@ -1275,7 +1276,8 @@ void action_focus(union ActionData *data)
|
|||
{
|
||||
if (data->client.any.c) {
|
||||
if (!data->any.button || client_mouse_focusable(data->client.any.c) ||
|
||||
data->any.context != OB_FRAME_CONTEXT_CLIENT)
|
||||
(data->any.context != OB_FRAME_CONTEXT_CLIENT &&
|
||||
data->any.context != OB_FRAME_CONTEXT_FRAME))
|
||||
{
|
||||
/* if using focus_delay, stop the timer now so that focus doesn't
|
||||
go moving on us */
|
||||
|
|
Loading…
Reference in a new issue