Reading the most recent Event from Event Queue

BlitzMax Forums/BlitzMax Programming/Reading the most recent Event from Event Queue

You can just flag the event you fire yourself, and then ignore it if it's flagged :)
If event.id = EVENT_WINDOWMOVE
	If event.data <> -1000
		' .. do something ..
		
		' post a flagged event
		PostEvent( CreateEvent(EVENT_WINDOWMOVE,bla,-1000,0,modifiedx,modifiedy) )
	EndIf
EndIf
Or maybe not?

Alternatively you can test if the x and y position is already ok, and then do nothing if they are.