Mercurial > mplayer.hg
comparison gui/ui/sub.c @ 33768:cee9987bc81d
Remove guiExit().
Integrate it into mplayer().
author | ib |
---|---|
date | Sat, 09 Jul 2011 10:23:47 +0000 |
parents | 520fb0f7544c |
children | afede91f9d5f |
comparison
equal
deleted
inserted
replaced
33767:690c9b35f4d1 | 33768:cee9987bc81d |
---|---|
33 int uiSubRender = 0; | 33 int uiSubRender = 0; |
34 int subVisible = 0; | 34 int subVisible = 0; |
35 | 35 |
36 void uiSubDraw( void ) | 36 void uiSubDraw( void ) |
37 { | 37 { |
38 if ( guiApp.subWindow.State == wsWindowClosed ) guiExit( EXIT_QUIT ); | 38 if ( guiApp.subWindow.State == wsWindowClosed ) mplayer( MPLAYER_EXIT_GUI, EXIT_QUIT, 0 ); |
39 | 39 |
40 if ( guiApp.subWindow.State == wsWindowFocusIn ) subVisible++; | 40 if ( guiApp.subWindow.State == wsWindowFocusIn ) subVisible++; |
41 if ( guiApp.subWindow.State == wsWindowFocusOut && metacity_hack != 3 ) subVisible--; | 41 if ( guiApp.subWindow.State == wsWindowFocusOut && metacity_hack != 3 ) subVisible--; |
42 | 42 |
43 if ( !guiApp.subWindow.Mapped || | 43 if ( !guiApp.subWindow.Mapped || |