give good screen to manage()
This commit is contained in:
parent
783a10f146
commit
b76d5d6722
2
event.c
2
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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue