From 0d3a70ff6c19b143e716fab7ddba26363671a73d Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 19 May 2007 23:47:40 +0000 Subject: don't focus new windows while typing --- src/Window.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Window.cc b/src/Window.cc index 4801f12..6f87913 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -545,6 +545,9 @@ void FluxboxWindow::init() { } else if (m_workspace_number == screen().currentWorkspaceID()) { iconic = true; deiconify(false); + // check if we should prevent this window from gaining focus + if (!allowsFocusFromClient()) + m_focused = false; } sendConfigureNotify(); -- cgit v0.11.2