common: Update from gnome-settings-daemon
This commit is contained in:
parent
3b72790b72
commit
a23aa64ec7
3 changed files with 13 additions and 4 deletions
|
@ -392,9 +392,14 @@ xdevice_get_dimensions (int deviceid,
|
|||
guint *value, w, h;
|
||||
int i, n_info;
|
||||
|
||||
gdk_error_trap_push ();
|
||||
|
||||
info = XIQueryDevice (GDK_DISPLAY_XDISPLAY (display), deviceid, &n_info);
|
||||
*width = *height = w = h = 0;
|
||||
|
||||
if (gdk_error_trap_pop ())
|
||||
return FALSE;
|
||||
|
||||
if (!info)
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue