From: Mark T. <ma...@fl...> - 2012-08-24 17:23:07
|
I don't have the source in front of me, but my recollection is that windows are not moved to the front of the focused list from workspace changes. That should, in principle, solve your problem. If that code isn't working for you, then it should be fixed. I will not support code that just skips stuck windows if they really were the most recently used window on the workspace. In particular, with your code, think of what happens if there are only stuck windows on the workspace: no window would appear focused, and the behavior would be like MouseFocus until the user clicked on one. Alternatively: use a keybinding? On Fri, Aug 24, 2012 at 12:44 AM, Ondrej Holecek <ond...@gm...> wrote: > Hi, > > I have 6 workspaces, 2 monitors (notebook with connected monitor). On > notebook I keep just a sticky jabber client window opened. On the > monitor, I have 6 terminals opened, maximized (one on each workspace). > Them problem is, when I switch the workspace the sticky jabber client > window steals terminal focus. I have to move the mouse to refocus > terminals. It's very annoying to move my hands from keyboard to mouse > and back. > > What about to apply this patch? > > > @@ -254,6 +255,9 @@ Focusable *FocusControl::lastFocusedWindow(int workspace) { > Focusables::iterator it = m_focused_list.clientList().begin(); > Focusables::iterator it_end = m_focused_list.clientList().end(); > for (; it != it_end; ++it) { > + if ((*it)->fbwindow() && (*it)->fbwindow()->isStuck()) { > + continue; > + } > > > > Ondrej > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Fluxbox-devel mailing list > Flu...@li... > https://lists.sourceforge.net/lists/listinfo/fluxbox-devel |