From 3a0d8391f84b7c5ebc28b75ab16e1092c1d06e43 Mon Sep 17 00:00:00 2001 From: mathias Date: Fri, 16 Sep 2005 05:58:26 +0000 Subject: LeftMouseButton should always setInputFocus() to avoid focus problems when changing the active window via NextWindow/PrevWindow and then not beeing able to set the focus of the window underneath the mouse with a simple click again (in MouseFocus - mode). Suggestion via mail to devel-ml from Eike von Seggern --- ChangeLog | 5 +++++ src/Window.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6327e7f..60d67e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ (Format: Year/Month/Day) Changes for 0.9.15: + * Click of LeftMouseButton should always setInputFocus (thanx Eike von Seggern) + solves problem with focus changes via key and then not beeing + able to focus the window underneath the mouse with a simple + click in MouseFocus mode + src/Window.cc * Use fbsetroot in Default-Styles (Mathias) data/styles/* ------------------------------------------------------------- diff --git a/src/Window.cc b/src/Window.cc index 35794ef..9485a29 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2647,7 +2647,7 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) { frame().buttonPressEvent(be); if (be.button == 1 || (be.button == 3 && be.state == Mod1Mask)) { - if ((! focused) && (! screen().isMouseFocus())) { //check focus + if ((! focused) ) { setInputFocus(); } -- cgit v0.11.2