mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	[client] core: remove state tracking in core_updateOverlayState
The state is never updated when a message box is dismissed, so the cursor is never displayed when a second message box shows up. The only other caller, app_setOverlay, has state tracking already.
This commit is contained in:
		@@ -654,12 +654,6 @@ void core_resetOverlayInputState(void)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void core_updateOverlayState(void)
 | 
					void core_updateOverlayState(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  static bool lastState = false;
 | 
					 | 
				
			||||||
  bool currentState = app_isOverlayMode();
 | 
					 | 
				
			||||||
  if (lastState == currentState)
 | 
					 | 
				
			||||||
    return;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  lastState          = currentState;
 | 
					 | 
				
			||||||
  g_state.cursorLast = -2;
 | 
					  g_state.cursorLast = -2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  static bool wasGrabbed = false;
 | 
					  static bool wasGrabbed = false;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user