Browse Source

Cleanups.

Mark Sibly 8 years ago
parent
commit
1a51199bd2
2 changed files with 3 additions and 18 deletions
  1. 1 5
      modules/mojo/app/app.monkey2
  2. 2 13
      modules/mojo/app/window.monkey2

+ 1 - 5
modules/mojo/app/app.monkey2

@@ -871,10 +871,6 @@ Class AppInstance
 			
 				SendWindowEvent( EventType.WindowRestored )
 				
-			Case SDL_WINDOWEVENT_EXPOSED
-			
-				RequestRender()
-			
 			Case SDL_WINDOWEVENT_FOCUS_GAINED
 			
 				Print "SDL_WINDOWEVENT_FOCUS_GAINED"
@@ -894,7 +890,7 @@ Class AppInstance
 				Local active:=_active
 				_active=False
 			
-				If _mouseView And Not _captureMouse	'should probably do this anyway?
+				If _mouseView And Not _captureMouse
 					SendMouseEvent( EventType.MouseUp,_mouseView )
 					_mouseView=Null
 				Endif

+ 2 - 13
modules/mojo/app/window.monkey2

@@ -263,22 +263,11 @@ Class Window Extends View
 			
 		Case EventType.WindowResized
 		
-			App.RequestRender()
+			App.RequestRender()		'Should maybe do this regardless?
 			
 		Case EventType.WindowGainedFocus
 		
-			App.RequestRender()		'Need to do this for KDE on linux...
-		
-		Case EventType.WindowMoved
-		
-		Case EventType.WindowMaximized
-		
-		Case EventType.WindowMinimized
-		
-		Case EventType.WindowRestored
-			
-		Case EventType.WindowLostFocus
-		
+			App.RequestRender()		'Need to do this for KDE on linux?
 		End
 		
 	End