mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
give good screen to manage()
This commit is contained in:
parent
783a10f146
commit
b76d5d6722
1 changed files with 2 additions and 0 deletions
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 a new issue