haiku: Disable pointer history
authorGerasim Troeglazov <3dEyes@gmail.com>
Tue, 03 Dec 2019 02:49:01 -0500
changeset 13306c51961094960
parent 13305 8cd53e2d31a5
child 13307 805a3b5cdcc8
haiku: Disable pointer history

(note from PulkoMandy on Bugzilla #4442 about why this is a desirable patch:
"The event mask: note that the window and GL view run in their own thread
which I don't expect to be too much CPU bound, and will quickly pop these
messages and forward them to the main thread in our SDL code. Therefore the
B_NO_POINTER_HISTORY should be no problem, and is the default on Haiku
anyway (it was not in BeOS, but we changed that and added a
B_FULL_POINTER_HISTORY flag to request the old behavior explicitly). So, this
seems fine.")

Partially fixes Bugzilla #4442.
src/video/haiku/SDL_BWin.h
     1.1 --- a/src/video/haiku/SDL_BWin.h	Tue Dec 03 02:42:53 2019 -0500
     1.2 +++ b/src/video/haiku/SDL_BWin.h	Tue Dec 03 02:49:01 2019 -0500
     1.3 @@ -140,6 +140,7 @@
     1.4              _gl_type = gl_flags;
     1.5          }
     1.6          AddChild(_SDL_GLView);
     1.7 +        _SDL_GLView->SetEventMask(B_POINTER_EVENTS | B_KEYBOARD_EVENTS, B_NO_POINTER_HISTORY);
     1.8          _SDL_GLView->EnableDirectMode(true);
     1.9          _SDL_GLView->LockGL();  /* "New" GLViews are created */
    1.10          Unlock();