Kaynağa Gözat

Fixed exiting on non-fatal error.

Dalton Nell 10 yıl önce
ebeveyn
işleme
d91f31edbe
1 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 5
    4
      main.cpp

+ 5
- 4
main.cpp Dosyayı Görüntüle

70
     }
70
     }
71
     if ( keyboard ) {
71
     if ( keyboard ) {
72
         err = xengine->grabKeyboard();
72
         err = xengine->grabKeyboard();
73
-        if ( err ) {
74
-            printSelection( true, 0, 0, 0, 0 );
75
-            return err;
76
-        }
73
+        // We shouldn't error out from failing to grab the keyboard.
74
+        //if ( err ) {
75
+            //printSelection( true, 0, 0, 0, 0 );
76
+            //return err;
77
+        //}
77
     }
78
     }
78
     clock_gettime( CLOCK_REALTIME, &start );
79
     clock_gettime( CLOCK_REALTIME, &start );
79
     while ( running ) {
80
     while ( running ) {