diff options
| author | garbeam@gmail.com <unknown> | 2011-06-25 09:07:28 +0100 |
|---|---|---|
| committer | garbeam@gmail.com <unknown> | 2011-06-25 09:07:28 +0100 |
| commit | 3a392b855882786d1aa9c842d1c36b5c1cbc576a (patch) | |
| tree | 03650d2f289f1caf5388211a5163a879c574c3d2 /BUGS | |
| parent | applied Andreas Amann's patch from Oct 2010, thanks (diff) | |
| download | dwm-3a392b855882786d1aa9c842d1c36b5c1cbc576a.tar.gz dwm-3a392b855882786d1aa9c842d1c36b5c1cbc576a.zip | |
making enternotify less focus hungry
Diffstat (limited to '')
| -rw-r--r-- | BUGS | 21 |
1 files changed, 0 insertions, 21 deletions
| @@ -8,27 +8,6 @@ reproducible with xrandr -s but not with --output and --mode, strange | |||
| 8 | 8 | ||
| 9 | --- | 9 | --- |
| 10 | 10 | ||
| 11 | > enternotify is handled even when the entered window is already focused | ||
| 12 | > (eg moving the mouse to the bar and back, scrolling on the border..) | ||
| 13 | > | ||
| 14 | > focusing might be expensive for some clients (eg dim/light up) | ||
| 15 | > | ||
| 16 | > a possible solution is to modify enternotify: | ||
| 17 | > | ||
| 18 | > + c = wintoclient(ev->window); | ||
| 19 | > if((m = wintomon(ev->window)) && m != selmon) { | ||
| 20 | > unfocus(selmon->sel); | ||
| 21 | > selmon = m; | ||
| 22 | > } | ||
| 23 | > + else if (c == selmon->sel || c == NULL) | ||
| 24 | > + return; | ||
| 25 | |||
| 26 | --- | ||
| 27 | |||
| 28 | dmenu appears on the monitor where the pointer is and not on selmon | ||
| 29 | |||
| 30 | --- | ||
| 31 | |||
| 32 | yet another corner case: | 11 | yet another corner case: |
| 33 | open a terminal, focus another monitor, but without moving the mouse | 12 | open a terminal, focus another monitor, but without moving the mouse |
| 34 | pointer there | 13 | pointer there |
