Misc: focus_pointer_click option
This commit is contained in:
parent
61858bbe64
commit
d525e3ace1
@ -242,7 +242,7 @@ client_focus(Client *c)
|
|||||||
sel->flags &= ~AboveFlag;
|
sel->flags &= ~AboveFlag;
|
||||||
|
|
||||||
frame_update(sel);
|
frame_update(sel);
|
||||||
mouse_grabbuttons(sel, False);
|
mouse_grabbuttons(sel, !conf.focus_pclick);
|
||||||
}
|
}
|
||||||
|
|
||||||
if((sel = c))
|
if((sel = c))
|
||||||
|
|||||||
@ -148,6 +148,7 @@ conf_misc_section(char *src)
|
|||||||
conf.raisefocus = get_opt(src, "false", "raisefocus").bool;
|
conf.raisefocus = get_opt(src, "false", "raisefocus").bool;
|
||||||
conf.raiseswitch = get_opt(src, "false", "raiseswitch").bool;
|
conf.raiseswitch = get_opt(src, "false", "raiseswitch").bool;
|
||||||
conf.focus_fmouse = get_opt(src, "true", "focus_follow_mouse").bool;
|
conf.focus_fmouse = get_opt(src, "true", "focus_follow_mouse").bool;
|
||||||
|
conf.focus_pclick = get_opt(src, "true", "focus_pointer_click").bool;
|
||||||
conf.status_timing = get_opt(src, "1", "status_timing").num;
|
conf.status_timing = get_opt(src, "1", "status_timing").num;
|
||||||
conf.status_path = get_opt(src, "", "status_path").str;
|
conf.status_path = get_opt(src, "", "status_path").str;
|
||||||
conf.autostart_path = get_opt(src, "", "autostart_path").str;
|
conf.autostart_path = get_opt(src, "", "autostart_path").str;
|
||||||
|
|||||||
@ -341,6 +341,7 @@ typedef struct
|
|||||||
Bool raisefocus;
|
Bool raisefocus;
|
||||||
Bool raiseswitch;
|
Bool raiseswitch;
|
||||||
Bool focus_fmouse;
|
Bool focus_fmouse;
|
||||||
|
Bool focus_pclick;
|
||||||
Bool ignore_next_client_rules;
|
Bool ignore_next_client_rules;
|
||||||
uint pad;
|
uint pad;
|
||||||
int status_timing;
|
int status_timing;
|
||||||
|
|||||||
@ -7,6 +7,10 @@
|
|||||||
font = "dejavu-10"
|
font = "dejavu-10"
|
||||||
raisefocus = false
|
raisefocus = false
|
||||||
focus_follow_mouse = true
|
focus_follow_mouse = true
|
||||||
|
# focus_pointer_click: click on unfocused client area:
|
||||||
|
# true -- default, set focus
|
||||||
|
# false -- click go to client; including dockapps
|
||||||
|
focus_pointer_click = true
|
||||||
status_timing = 1 #seconds
|
status_timing = 1 #seconds
|
||||||
[/misc]
|
[/misc]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user