AppSuspended not working in Linux

Archives Forums/BlitzMax Bug Reports/AppSuspended not working in Linux

markcw(Posted 2014) [#1]
Using ubuntu 12.10 with Max 1.48.

AppSuspended() never returns true. Either by clicking the minimize button or Alt+Tab.
Both EVENT_APPSUSPEND and EVENT_APPRESUME don't occur.

Example.
' appsuspended.bmx

Graphics 640,480

While Not AppTerminate() And Not KeyDown(KEY_ESCAPE)

	Cls
	id%=PollEvent()
	Select id
		Case EVENT_APPSUSPEND Print "App was suspended"
		Case EVENT_APPRESUME Print "App was resumed"		
		Default If id Then Print id
	End Select
		If AppSuspended() Print "App suspended"
		DrawText "Alt+Tab to Minimize",0,0
	Flip
	
Wend