Daniele Bartolini 3 лет назад
Родитель
Сommit
f9ceb27d69
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      src/device/main_linux.cpp

+ 2 - 4
src/device/main_linux.cpp

@@ -441,8 +441,7 @@ struct LinuxDevice
 
 			if (FD_ISSET(exit_pipe[0], &fdset)) {
 				break;
-			}
-			else if (FD_ISSET(x11_fd, &fdset)) {
+			} else if (FD_ISSET(x11_fd, &fdset)) {
 				while (XEventsQueued(_x11_display, QueuedAfterFlush) > 0) {
 					XEvent event;
 					XNextEvent(_x11_display, &event);
@@ -592,8 +591,7 @@ struct LinuxDevice
 						break;
 					}
 				}
-			}
-			else {
+			} else {
 				_joypad.update(_queue, &fdset);
 			}
 		}