Commit 66f03d20 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Add more debug messages to track windows FS controller flickering bug.

parent aa3ff9d9
...@@ -1085,6 +1085,7 @@ void FullscreenControllerWidget::showFSC() ...@@ -1085,6 +1085,7 @@ void FullscreenControllerWidget::showFSC()
{ {
adjustSize(); adjustSize();
#ifdef WIN32TRICK #ifdef WIN32TRICK
msg_Dbg( p_intf, "showFSC() was called" );
// after quiting and going to fs, we need to call show() // after quiting and going to fs, we need to call show()
if( isHidden() ) if( isHidden() )
show(); show();
...@@ -1111,6 +1112,7 @@ void FullscreenControllerWidget::showFSC() ...@@ -1111,6 +1112,7 @@ void FullscreenControllerWidget::showFSC()
void FullscreenControllerWidget::hideFSC() void FullscreenControllerWidget::hideFSC()
{ {
#ifdef WIN32TRICK #ifdef WIN32TRICK
msg_Dbg( p_intf, "hideFSC() was called" );
b_fscHidden = true; b_fscHidden = true;
setWindowOpacity( 0.0 ); // simulate hidding setWindowOpacity( 0.0 ); // simulate hidding
#else #else
...@@ -1156,6 +1158,7 @@ void FullscreenControllerWidget::slowHideFSC() ...@@ -1156,6 +1158,7 @@ void FullscreenControllerWidget::slowHideFSC()
else else
{ {
#ifdef WIN32TRICK #ifdef WIN32TRICK
msg_Dbg( p_intf, "slowHideFSC() was called" );
if ( windowOpacity() > 0.0 && !b_fscHidden ) if ( windowOpacity() > 0.0 && !b_fscHidden )
#else #else
if ( windowOpacity() > 0.0 ) if ( windowOpacity() > 0.0 )
...@@ -1180,6 +1183,10 @@ void FullscreenControllerWidget::customEvent( QEvent *event ) ...@@ -1180,6 +1183,10 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
{ {
bool b_fs; bool b_fs;
#ifndef NDEBUG
msg_Dbg( p_intf, "New FSC event: %i", event->type() );
#endif
switch( event->type() ) switch( event->type() )
{ {
case FullscreenControlToggle_Type: case FullscreenControlToggle_Type:
......
Markdown is supported
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