From 907c2d2aaacae89a65ac1afb84ab88b10870e2e8 Mon Sep 17 00:00:00 2001 From: rathnor Date: Mon, 15 Dec 2003 11:55:58 +0000 Subject: fix mozilla focus issue --- ChangeLog | 4 ++++ src/WinClient.cc | 13 +++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7431066..efbbb8c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ (Format: Year/Month/Day) Changes for 0.9.7: +*03/12/15: + * Fix mozilla focus issue (Simon) + - When input focus hint not present assume false rather than true + WinClient.cc *03/12/13: * Moving client to drop zone when drag'n'drop to root window (Henrik) Window.cc diff --git a/src/WinClient.cc b/src/WinClient.cc index 8e378bf..4dae403 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: WinClient.cc,v 1.31 2003/12/04 21:31:02 fluxgen Exp $ +// $Id: WinClient.cc,v 1.32 2003/12/15 11:55:58 rathnor Exp $ #include "WinClient.hh" @@ -63,12 +63,12 @@ WinClient::WinClient(Window win, BScreen &screen, FluxboxWindow *fbwin):FbTk::Fb m_focus_mode(F_PASSIVE), m_diesig(*this), m_screen(screen), m_strut(0) { + updateWMProtocols(); updateBlackboxHints(); updateMWMHints(); updateWMHints(); updateWMNormalHints(); updateWMClassHint(); - updateWMProtocols(); updateTitle(); updateIconTitle(); Fluxbox::instance()->saveWindowSearch(win, this); @@ -398,8 +398,13 @@ void WinClient::updateWMHints() { else m_focus_mode = F_NOINPUT; } - } else - m_focus_mode = F_PASSIVE; + } else // not present => false (check?). + // note that mozilla has no value, and has send_focus + // and requires globally active + if (send_focus_message) + m_focus_mode = F_GLOBALLYACTIVE; + else + m_focus_mode = F_NOINPUT; if (wmhint->flags & StateHint) initial_state = wmhint->initial_state; -- cgit v0.11.2