Page 1 of 1

Opengl & compiz PB4.41

Posted: Thu Apr 01, 2010 9:51 am
by scrat
hello

When i use desktop effects (compiz) the window program goes black and white after a few seconds (like a zombie program) but the programm run well
Without compiz all is ok

basic code to test (opengl)
active desktop effects
Run the program and wait 5 seconds !

Code: Select all

Enumeration
#Main
EndEnumeration

If InitSprite() And InitSprite3D()  And InitKeyboard()
    OpenWindow(#Main,5,5,800,600,"")
    OpenWindowedScreen(WindowID(#Main),0,0,800,600,0,0,0)
  
  Repeat
  
  ExamineKeyboard()

  
  ClearScreen(0)
  FlipBuffers()
  Delay(20)
  Until  KeyboardPushed(#PB_Key_Escape) 
  
EndIf
End

A+

Re: Opengl & compiz PB4.41

Posted: Thu Apr 01, 2010 10:05 am
by Fred
You have to process the event: While WindowEvent() : Wend

Re: Opengl & compiz PB4.41

Posted: Thu Apr 01, 2010 10:55 am
by scrat
sorry
mea-culpa
:oops: