diff --git a/src/desktop/UBDesktopAnnotationController.cpp b/src/desktop/UBDesktopAnnotationController.cpp
index fb1c9907..e3f894ff 100644
--- a/src/desktop/UBDesktopAnnotationController.cpp
+++ b/src/desktop/UBDesktopAnnotationController.cpp
@@ -176,8 +176,11 @@ void UBDesktopAnnotationController::showKeyboard(bool show)
         if(show)
             UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector);
         mKeyboardPalette->setVisible(show);
-        updateMask(true);
-        //    mDesktopPalette->showVirtualKeyboard(show);
+
+        #ifdef Q_WS_X11
+            updateMask(true);
+        #endif
+        
     }
 
 }