all repos — fluxbox @ 689fdc77b09b238073e59bbb71c2a8e8b3875974

custom fork of the fluxbox windowmanager

focus tweak - ignore NotifyInferior
rathnor rathnor
commit

689fdc77b09b238073e59bbb71c2a8e8b3875974

parent

15b41a3c35992c61abba76a21cf3731b066a898e

2 files changed, 12 insertions(+), 5 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,6 +1,9 @@

(Format: Year/Month/Day) Changes for 0.9.7: *03/12/09: + * Ignore NotifyInferior focus changes (Simon) + - trying to pin down various focus issues... does this help/hinder? + fluxbox.cc * New theme items: (Simon) window.label.active: <texture> window.label.active.textColor: <color>
M src/fluxbox.ccsrc/fluxbox.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.205 2003/12/08 17:32:08 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.206 2003/12/09 12:28:24 rathnor Exp $ #include "fluxbox.hh"

@@ -922,23 +922,27 @@ ColormapInstalled) ? true : false);

} } break; case FocusIn: { - + // a grab is something of a pseudo-focus event, so we ignore // them, here we ignore some window receiving it if (e->xfocus.mode == NotifyGrab || - e->xfocus.detail == NotifyPointer) + e->xfocus.detail == NotifyPointer || + e->xfocus.detail == NotifyInferior) break; WinClient *winclient = searchWindow(e->xfocus.window); if (winclient && m_focused_window != winclient) setFocusedWindow(winclient); - + } break; case FocusOut:{ + // and here we ignore some window losing the special grab focus if (e->xfocus.mode == NotifyGrab || - e->xfocus.detail == NotifyPointer) + e->xfocus.detail == NotifyPointer || + e->xfocus.detail == NotifyInferior) break; + WinClient *winclient = searchWindow(e->xfocus.window); if (winclient == 0 && FbTk::Menu::focused() == 0) { #ifdef DEBUG