barrier: fix fallback for unsupported servers

add missing ifdef HAVE_XI23.

https://bugzilla.gnome.org/show_bug.cgi?id=677215
This commit is contained in:
Tim Lunn 2013-02-09 10:28:22 +11:00
parent c64eb94724
commit b3c572b8e3

View File

@ -1837,11 +1837,13 @@ get_input_event (MetaDisplay *display,
if (((XIEnterEvent *) input_event)->deviceid == META_VIRTUAL_CORE_POINTER_ID) if (((XIEnterEvent *) input_event)->deviceid == META_VIRTUAL_CORE_POINTER_ID)
return input_event; return input_event;
break; break;
#ifdef HAVE_XI23
case XI_BarrierHit: case XI_BarrierHit:
case XI_BarrierLeave: case XI_BarrierLeave:
if (((XIBarrierEvent *) input_event)->deviceid == META_VIRTUAL_CORE_POINTER_ID) if (((XIBarrierEvent *) input_event)->deviceid == META_VIRTUAL_CORE_POINTER_ID)
return input_event; return input_event;
break; break;
#endif /* HAVE_XI23 */
default: default:
break; break;
} }