renamed function 'WaitEventFiltered' to 'WaitValidEvent'
authorHolger Schemel <info@artsoft.org>
Wed, 31 Jan 2018 19:41:51 +0000 (20:41 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 31 Jan 2018 19:42:52 +0000 (20:42 +0100)
- to match function 'NextValidEvent'

src/events.c

index 2998066b98230577aae3198ddbc0b861877646bc..b51839817a0e480b37be24bc8fb26bab2aee0aca 100644 (file)
@@ -128,7 +128,7 @@ static boolean SkipPressedMouseMotionEvent(const Event *event)
   return FALSE;
 }
 
-static boolean WaitEventFiltered(Event *event)
+static boolean WaitValidEvent(Event *event)
 {
   WaitEvent(event);
 
@@ -152,7 +152,7 @@ static boolean WaitEventFiltered(Event *event)
 boolean NextValidEvent(Event *event)
 {
   while (PendingEvent())
-    if (WaitEventFiltered(event))
+    if (WaitValidEvent(event))
       return TRUE;
 
   return FALSE;
@@ -391,7 +391,7 @@ void SleepWhileUnmapped()
   {
     Event event;
 
-    if (!WaitEventFiltered(&event))
+    if (!WaitValidEvent(&event))
       continue;
 
     switch (event.type)