all repos — fluxbox @ 96132f2afef4489f4faa85f24ac807086ed66b12

custom fork of the fluxbox windowmanager

fixed focus issue when changing next or prevclient
fluxgen fluxgen
commit

96132f2afef4489f4faa85f24ac807086ed66b12

parent

5eaa34347139844afe27ce28276c40898bb55abb

1 files changed, 4 insertions(+), 6 deletions(-)

jump to
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.189 2003/09/11 21:30:20 rathnor Exp $ +// $Id: fluxbox.cc,v 1.190 2003/09/12 22:55:33 fluxgen Exp $ #include "fluxbox.hh"

@@ -871,10 +871,6 @@ if (winclient == 0 && FbTk::Menu::focused() == 0) {

#ifdef DEBUG cerr<<__FILE__<<"("<<__FUNCTION__<<") Focus out is not a FluxboxWindow !!"<<endl; #endif // DEBUG - - } else { - if (winclient == m_focused_window) - setFocusedWindow(0); } } break;

@@ -1912,7 +1908,7 @@ #endif // DEBUG

BScreen *old_screen = 0, *screen = 0; WinClient *old_client = 0; Workspace *old_wkspc = 0, *wkspc = 0; - + if (m_focused_window != 0) { // check if m_focused_window is valid bool found = false;

@@ -1957,8 +1953,10 @@ m_focused_window = client; // update focused window

win->setCurrentClient(*client, false); // don't setinputfocus win->setFocusFlag(true); // set focus flag } + } else m_focused_window = 0; + if (screen != 0)