mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
...
This commit is contained in:
parent
043b048c55
commit
7ecf21af70
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user