mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
Don't require a push/pop trap around
2006-10-01 Elijah Newren <newren gmail com> * src/display.c (meta_display_set_input_focus_window): * src/window.c (meta_window_focus): Don't require a push/pop trap around meta_display_set_input_focus_window(), but rather move the push/pop into that function surrounding the XSetInputFocus() call directly. Follow up to #358514.
This commit is contained in:
parent
ca3ed6a1eb
commit
c4fa0d118c
@ -1,3 +1,12 @@
|
||||
2006-10-01 Elijah Newren <newren gmail com>
|
||||
|
||||
* src/display.c (meta_display_set_input_focus_window):
|
||||
* src/window.c (meta_window_focus):
|
||||
Don't require a push/pop trap around
|
||||
meta_display_set_input_focus_window(), but rather move the
|
||||
push/pop into that function surrounding the XSetInputFocus() call
|
||||
directly. Follow up to #358514.
|
||||
|
||||
2006-10-01 Elijah Newren <newren gmail com>
|
||||
|
||||
* src/*.[ch]: Stick an emacs comment directive at the beginning of
|
||||
|
@ -5002,10 +5002,13 @@ meta_display_set_input_focus_window (MetaDisplay *display,
|
||||
if (timestamp_too_old (display, window, ×tamp))
|
||||
return;
|
||||
|
||||
meta_error_trap_push (display);
|
||||
XSetInputFocus (display->xdisplay,
|
||||
focus_frame ? window->frame->xwindow : window->xwindow,
|
||||
RevertToPointerRoot,
|
||||
timestamp);
|
||||
meta_error_trap_pop (display, FALSE);
|
||||
|
||||
display->expected_focus_window = window;
|
||||
display->last_focus_time = timestamp;
|
||||
display->active_screen = window->screen;
|
||||
|
@ -3876,8 +3876,6 @@ meta_window_focus (MetaWindow *window,
|
||||
}
|
||||
else
|
||||
{
|
||||
meta_error_trap_push (window->display);
|
||||
|
||||
if (window->input)
|
||||
{
|
||||
meta_topic (META_DEBUG_FOCUS,
|
||||
@ -3899,8 +3897,6 @@ meta_window_focus (MetaWindow *window,
|
||||
timestamp);
|
||||
window->display->expected_focus_window = window;
|
||||
}
|
||||
|
||||
meta_error_trap_pop (window->display, FALSE);
|
||||
}
|
||||
|
||||
if (window->wm_state_demands_attention)
|
||||
|
Loading…
Reference in New Issue
Block a user