This commit is contained in:
rhp 2001-06-23 05:26:28 +00:00
parent 043b048c55
commit 7ecf21af70

View File

@ -532,7 +532,7 @@ event_callback (XEvent *event,
switch (event->type) switch (event->type)
{ {
case KeyPress: case KeyPress:
meta_display_process_key_press (display, event); meta_display_process_key_press (display, window, event);
break; break;
case KeyRelease: case KeyRelease:
break; break;
@ -553,24 +553,9 @@ event_callback (XEvent *event,
case LeaveNotify: case LeaveNotify:
break; break;
case FocusIn: case FocusIn:
if (window)
{
if (window != window->display->focus_window)
window->display->focus_window = window;
window->has_focus = TRUE;
if (window->frame)
meta_frame_queue_draw (window->frame);
}
break;
case FocusOut: case FocusOut:
if (window) if (window)
{ meta_window_notify_focus (window, event);
if (window == window->display->focus_window)
window->display->focus_window = NULL;
window->has_focus = FALSE;
if (window->frame)
meta_frame_queue_draw (window->frame);
}
break; break;
case KeymapNotify: case KeymapNotify:
break; break;
@ -1038,7 +1023,7 @@ meta_spew_event (MetaDisplay *display,
name = "MappingNotify"; name = "MappingNotify";
break; break;
default: default:
name = "Unknown"; name = "Unknown event type";
break; break;
} }