WaitWindowEvent() - question (win/lin)
Posted: Thu Apr 21, 2016 1:21 pm
I've posted message in Linux part of forum regarding issue that I've noticed while porting
(recompiling) my code from Windows to Linux. But while run some additional tests I've noticed
some strange results obtained from WaitWindowEvent() function on Linux platform.
I am using this function (as many other users do) to track different events from my windows.
In a sample application I've got just two windows (one main with button gadget and another
window, that would open when user pressed button). Simple task. But I need to keep focus
(keep second window active) - so that user could get back to main window only after closing
second window. I am using SetActiveWindow function for that purpose and it's working fine on
windows - but got issues with the same on Linux OS: http://www.purebasic.fr/english/viewtop ... 15&t=65519
And what I've noticed - on Windows platform result values obtained from WaitWindowEvent() seems
to be stable, while on Linux I am getting random number values out of that function and very
often got "-1" as returning result. Could anyone advice if that is expected results - because I think
values should be similar to ones on Windows platform... Or am I mistaken ?
(recompiling) my code from Windows to Linux. But while run some additional tests I've noticed
some strange results obtained from WaitWindowEvent() function on Linux platform.
I am using this function (as many other users do) to track different events from my windows.
In a sample application I've got just two windows (one main with button gadget and another
window, that would open when user pressed button). Simple task. But I need to keep focus
(keep second window active) - so that user could get back to main window only after closing
second window. I am using SetActiveWindow function for that purpose and it's working fine on
windows - but got issues with the same on Linux OS: http://www.purebasic.fr/english/viewtop ... 15&t=65519
And what I've noticed - on Windows platform result values obtained from WaitWindowEvent() seems
to be stable, while on Linux I am getting random number values out of that function and very
often got "-1" as returning result. Could anyone advice if that is expected results - because I think
values should be similar to ones on Windows platform... Or am I mistaken ?