Skip to content
Browse files

GUI: Force exit of fullscreen mode when player stops.

  • Loading branch information...
1 parent 708d347 commit dd8c7ac981d72c948a950c1cb6e36ea7877ac661 @marlam marlam committed
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/video_output_opengl_qt.cpp
View
7 src/video_output_opengl_qt.cpp
@@ -387,6 +387,7 @@ void video_output_opengl_qt::process_events()
void video_output_opengl_qt::close()
{
+ exit_fullscreen();
delete _widget;
_widget = NULL;
}
@@ -453,11 +454,7 @@ void video_output_opengl_qt::receive_notification(const notification &note)
case notification::play:
if (!note.current.flag)
{
- if (state().fullscreen)
- {
- exit_fullscreen();
- }
- _widget->update();
+ exit_fullscreen();
}
break;
case notification::pause:

0 comments on commit dd8c7ac

Please sign in to comment.
Something went wrong with that request. Please try again.