Commit 96824f0c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Emit a fullscreen toggle action on double click

If we just set "fullscreen" on the emitting video output, the fullscreen
mode will not survive a change of video output.
With this hack, the hotkeys interface can handle the request correctly.
On the other hand, the hotkeys can also handle it incorrectly (e.g. if
inside LibVLC). It all comes down to the fact that key actions are per
instance, when most of them should be per-input.
parent 2d53f020
......@@ -85,7 +85,8 @@ static inline void vout_SendEventMouseReleased(vout_thread_t *vout, int button)
static inline void vout_SendEventMouseDoubleClick(vout_thread_t *vout)
//vout_ControlSetFullscreen(vout, !var_GetBool(vout, "fullscreen"));
var_ToggleBool(vout, "fullscreen");
//var_ToggleBool(vout, "fullscreen");
var_SetInteger(vout->p_libvlc, "key-action", ACTIONID_TOGGLE_FULLSCREEN);
static inline void vout_SendEventMouseVisible(vout_thread_t *vout)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment