sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 057c1ac42ecb710e7458fc91772c89b5594495c4
parent 4d7a8a7a1df5998d25ef2a7254b03eecc07c1875
Author: Markus Pinkert <peters_mops@arcor.de>
Date:   Sun, 21 Mar 2010 00:50:18 +0100

added focusonclick patch
Diffstat:
Adwm.suckless.org/patches/dwm-r1508-focusonclick.diff | 38++++++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/focusonclick.md | 14++++++++++++++
2 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-r1508-focusonclick.diff b/dwm.suckless.org/patches/dwm-r1508-focusonclick.diff @@ -0,0 +1,38 @@ +diff -r 72e52c5333ef config.def.h +--- a/config.def.h Wed Nov 25 13:56:17 2009 +0000 ++++ b/config.def.h Sun Mar 21 00:38:45 2010 +0100 +@@ -12,6 +12,7 @@ + static const unsigned int snap = 32; /* snap pixel */ + static const Bool showbar = True; /* False means no bar */ + static const Bool topbar = True; /* False means bottom bar */ ++static const Bool focusonclick = True; /* Change focus only on click */ + + /* tagging */ + static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; +diff -r 72e52c5333ef dwm.c +--- a/dwm.c Wed Nov 25 13:56:17 2009 +0000 ++++ b/dwm.c Sun Mar 21 00:38:45 2010 +0100 +@@ -791,14 +791,16 @@ + + if((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root) + return; +- if((m = wintomon(ev->window)) && m != selmon) { +- unfocus(selmon->sel); +- selmon = m; ++ if (!focusonclick) { ++ if((m = wintomon(ev->window)) && m != selmon) { ++ unfocus(selmon->sel); ++ selmon = m; ++ } ++ if((c = wintoclient(ev->window))) ++ focus(c); ++ else ++ focus(NULL); + } +- if((c = wintoclient(ev->window))) +- focus(c); +- else +- focus(NULL); + } + + void diff --git a/dwm.suckless.org/patches/focusonclick.md b/dwm.suckless.org/patches/focusonclick.md @@ -0,0 +1,14 @@ +# FOCUSONCLICK + +## Description + + * Switch focus only by mouse click and not sloppy + +## Download + + * [dwm-r1508-focusonclick.diff](dwm-r1508-focusonclick.diff) (dwm r1508) (20100321) + +## Author + + * Markus P. - peters_mops at arcor . de +