From b76d5d67220a59b7273e8f9304b5ec3595221e03 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 27 Sep 2007 18:57:22 +0200 Subject: [PATCH] give good screen to manage() --- event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/event.c b/event.c index e9bbd753..b161768a 100644 --- a/event.c +++ b/event.c @@ -398,6 +398,8 @@ handle_event_maprequest(XEvent * e, awesome_config *awesomeconf) if(!getclient(ev->window)) { for(screen = 0; wa.screen != ScreenOfDisplay(e->xany.display, screen); screen++); + if(screen == 0) + screen = get_screen_bycoord(e->xany.display, wa.x, wa.y); manage(e->xany.display, &dc[screen], ev->window, &wa, &awesomeconf[screen]); } }