oops
fluxgen fluxgen
1 files changed,
12 insertions(+),
13 deletions(-)
jump to
M
src/fluxbox.cc
→
src/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.223 2004/01/16 11:29:12 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.224 2004/01/16 11:38:30 fluxgen Exp $ #include "fluxbox.hh"@@ -759,20 +759,19 @@ // so we can get FbTk::Menu::focused() before it sets to 0
if (e->type == FocusOut && FbTk::Menu::focused() != 0 && FbTk::Menu::focused()->window() == e->xfocus.window) { - // find screen num - BScreen *screen = 0; - ScreenList::iterator it = m_screen_list.begin(); - ScreenList::iterator it_end = m_screen_list.end(); - for (; it != it_end; ++it) { - if ( (*it)->screenNumber() == - FbTk::Menu::focused()->fbwindow().screenNumber()) { - screen = (*it); - break; // found the screen, no more search - } + // find screen num + BScreen *screen = 0; + ScreenList::iterator it = m_screen_list.begin(); + ScreenList::iterator it_end = m_screen_list.end(); + for (; it != it_end; ++it) { + if ( (*it)->screenNumber() == + FbTk::Menu::focused()->fbwindow().screenNumber()) { + screen = (*it); + break; // found the screen, no more search } - if (screen != 0) - revertFocus(*screen); } + if (screen != 0) + revertFocus(*screen); } // try FbTk::EventHandler first