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
This commit is contained in:
parent
94acb4a27e
commit
3a0d8391f8
2 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 0.9.15:
|
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)
|
* Use fbsetroot in Default-Styles (Mathias)
|
||||||
data/styles/*
|
data/styles/*
|
||||||
-------------------------------------------------------------
|
-------------------------------------------------------------
|
||||||
|
|
|
@ -2647,7 +2647,7 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
|
||||||
frame().buttonPressEvent(be);
|
frame().buttonPressEvent(be);
|
||||||
|
|
||||||
if (be.button == 1 || (be.button == 3 && be.state == Mod1Mask)) {
|
if (be.button == 1 || (be.button == 3 && be.state == Mod1Mask)) {
|
||||||
if ((! focused) && (! screen().isMouseFocus())) { //check focus
|
if ((! focused) ) {
|
||||||
setInputFocus();
|
setInputFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue