[vlc-devel] commit: Emit a fullscreen toggle action on double click ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Feb 10 19:20:33 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 10 20:17:31 2010 +0200| [96824f0c8d6134b62fbcf9876a5411258486d390] | committer: Rémi Denis-Courmont 

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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=96824f0c8d6134b62fbcf9876a5411258486d390
---

 src/video_output/event.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/video_output/event.h b/src/video_output/event.h
index 6614d5d..bbc7812 100644
--- a/src/video_output/event.h
+++ b/src/video_output/event.h
@@ -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)
 {




More information about the vlc-devel mailing list