remove DefaultScreen ; don't know if it's good, hoping

This commit is contained in:
Julien Danjou 2007-09-16 13:51:27 +02:00
parent 0539eaa4b0
commit 79a3659f72
1 changed files with 3 additions and 1 deletions

View File

@ -356,10 +356,12 @@ void
handle_event_mappingnotify(XEvent * e, awesome_config *awesomeconf)
{
XMappingEvent *ev = &e->xmapping;
int screen;
XRefreshKeyboardMapping(ev);
if(ev->request == MappingKeyboard)
grabkeys(e->xany.display, DefaultScreen(e->xany.display), &awesomeconf[DefaultScreen(e->xany.display)]);
for(screen = 0; screen < ScreenCount(e->xany.display); screen++)
grabkeys(e->xany.display, screen, &awesomeconf[screen]);
}
void