common: Update from gnome-settings-daemon

This commit is contained in:
Carlos Garnacho 2017-07-13 18:06:46 +02:00
parent 3b72790b72
commit a23aa64ec7
3 changed files with 13 additions and 4 deletions

View file

@ -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;