changeset 33943:de065d751a8c

Change ESC key behavior in fullscreen state. The ESC key shall only switch to normal video window size if there is a video window and during playback. It shall have its default meaning else.
author ib
date Thu, 01 Sep 2011 16:55:14 +0000
parents afede91f9d5f
children 78ba6c8c46a5
files gui/ui/main.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/main.c	Thu Sep 01 16:44:52 2011 +0000
+++ b/gui/ui/main.c	Thu Sep 01 16:55:14 2011 +0000
@@ -580,7 +580,7 @@
       case wsXF86Next:         msg=evNext; break;
       case wsXF86Media:        msg=evLoad; break;
       case wsEscape:
-    	    if ( guiApp.subWindow.isFullScreen )
+    	    if ( guiInfo.VideoWindow && guiInfo.Playing && guiApp.subWindow.isFullScreen )
 	     {
 	      uiEventHandling( evNormalSize,0 );
 	      return;