mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
add error trap
2001-11-26 Havoc Pennington <hp@redhat.com> * src/window.c (window_query_root_pointer): add error trap
This commit is contained in:
parent
5ccb32efed
commit
420c29dea9
@ -1,3 +1,7 @@
|
|||||||
|
2001-11-26 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* src/window.c (window_query_root_pointer): add error trap
|
||||||
|
|
||||||
2001-11-27 Jesus Bravo Alvarez <jba@pobox.com>
|
2001-11-27 Jesus Bravo Alvarez <jba@pobox.com>
|
||||||
|
|
||||||
* configure.in: Added gl (Galician) to ALL_LINGUAS.
|
* configure.in: Added gl (Galician) to ALL_LINGUAS.
|
||||||
|
@ -5021,6 +5021,8 @@ window_query_root_pointer (MetaWindow *window,
|
|||||||
int win_x_return, win_y_return;
|
int win_x_return, win_y_return;
|
||||||
unsigned int mask_return;
|
unsigned int mask_return;
|
||||||
|
|
||||||
|
meta_error_trap_push (window->display);
|
||||||
|
|
||||||
XQueryPointer (window->display->xdisplay,
|
XQueryPointer (window->display->xdisplay,
|
||||||
window->xwindow,
|
window->xwindow,
|
||||||
&root_return,
|
&root_return,
|
||||||
@ -5031,6 +5033,8 @@ window_query_root_pointer (MetaWindow *window,
|
|||||||
&win_y_return,
|
&win_y_return,
|
||||||
&mask_return);
|
&mask_return);
|
||||||
|
|
||||||
|
meta_error_trap_pop (window->display);
|
||||||
|
|
||||||
if (x)
|
if (x)
|
||||||
*x = root_x_return;
|
*x = root_x_return;
|
||||||
if (y)
|
if (y)
|
||||||
|
Loading…
Reference in New Issue
Block a user