[4 beta 3 linux] Events occur on an inexisting window

Linux specific forum
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

[4 beta 3 linux] Events occur on an inexisting window

Post by Trond »

Many events goes to the window with the ID -1.

Code: Select all

OpenWindow(0, 0, 0, 100, 100, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)

Repeat
  Event = WaitWindowEvent(1000)
  Select Event
    Case #PB_Event_CloseWindow
      CloseWindow(0)
    Default
      Debug EventWindow()
  EndSelect
ForEver
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

It means they are gtk events with no meaning in PB.
The WaitWindowEvent() result does not match a PB constant either, so just ignore them.
quidquid Latine dictum sit altum videtur
Post Reply