all repos — fluxbox @ 6fd35dc9b581f4c52194a0aa5d13ce232f08d236

custom fork of the fluxbox windowmanager

fix focusing new windows - simon
rathnor rathnor
commit

6fd35dc9b581f4c52194a0aa5d13ce232f08d236

parent

48c401df0c2d0e0c4a55c9437a34defc6f75e208

1 files changed, 12 insertions(+), 5 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.111 2003/04/15 19:04:18 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.112 2003/04/16 10:49:59 rathnor Exp $ #include "fluxbox.hh"

@@ -680,18 +680,25 @@ //!!! TODO

BScreen *scr = searchScreen(e->xmaprequest.parent); cerr<<"screen = "<<scr<<endl; if (scr != 0) - scr->createWindow(e->xmaprequest.window); + win = scr->createWindow(e->xmaprequest.window); else cerr<<"Fluxbox Warning! Could not find screen to map window on!"<<endl; } // handled in FluxboxWindow::handleEvent - + if (win) + win->mapRequestEvent(e->xmaprequest); + } break; - case MapNotify: + case MapNotify: { // handled directly in FluxboxWindow::handleEvent + + FluxboxWindow *win = searchWindow(e->xmap.window); + + if (win) + win->mapNotifyEvent(e->xmap); + } break; - case UnmapNotify: handleUnmapNotify(e->xunmap);