Mercurial > mplayer.hg
view loader/wine/objbase.h @ 34081:66c5a04a5c32
Fix cursor autohide functionality of the GUI.
There will only be calls to wsEvents() (through GUI_HANDLE_X_EVENT in
x11_common.c) which handles the cursor autohide, if there are X events
pending - which during normal playback isn't the case.
If you happen to have configured option use-filename-title, then there
will be periodical XStoreName() calls which trigger X events that keep
calling GUI_HANDLE_X_EVENT as a side effect.
To ensure recurring calls to the cursor autohide code in any case it has
been made a separate function which is called through GUI_HANDLE_EVENTS
now. GUI_HANDLE_EVENTS is periodically called by MPlayer.
Additionally, only show cursor in wsEvents() (and thereby enable
autohide) if it previously was hidden.
author | ib |
---|---|
date | Sat, 01 Oct 2011 15:09:09 +0000 |
parents | 837cd9762b4e |
children |
line wrap: on
line source
#ifndef MPLAYER_OBJBASE_H #define MPLAYER_OBJBASE_H #include "windef.h" #ifndef STDCALL #define STDCALL __attribute__((__stdcall__)) #endif /* from objbase.h needed for ve_vfw.c */ typedef enum tagCOINIT { COINIT_APARTMENTTHREADED = 0x2, COINIT_MULTITHREADED = 0x0, COINIT_DISABLE_OLE1DDE = 0x4, COINIT_SPEED_OVER_MEMORY = 0x8 } COINIT; HRESULT STDCALL CoInitialize(LPVOID pvReserved); HRESULT STDCALL CoInitializeEx(LPVOID pvReserved, DWORD dwCoinit); void STDCALL CoUninitialize(void); #endif /* MPLAYER_OBJBASE_H */