diff --git a/intern/ghost/intern/GHOST_SystemX11.cpp b/intern/ghost/intern/GHOST_SystemX11.cpp index 4bf4edaf092..22c16009591 100644 --- a/intern/ghost/intern/GHOST_SystemX11.cpp +++ b/intern/ghost/intern/GHOST_SystemX11.cpp @@ -422,6 +422,8 @@ processEvents( return anyProcessed; } + +#ifdef WITH_X11_XINPUT /* set currently using tablet mode (stylus or eraser) depending on device ID */ static void setTabletMode(GHOST_WindowX11 * window, XID deviceid) { @@ -430,6 +432,7 @@ static void setTabletMode(GHOST_WindowX11 * window, XID deviceid) else if(deviceid == window->GetXTablet().EraserID) window->GetXTablet().CommonData.Active= GHOST_kTabletModeEraser; } +#endif /* WITH_X11_XINPUT */ void GHOST_SystemX11::processEvent(XEvent *xe)