Bug 100881

Summary: no context menu when no document opened: not possible to restore from full screen
Product: [Applications] kpdf Reporter: Wilbert Berendsen <wbsoft>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.4   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Wilbert Berendsen 2005-03-05 12:45:46 UTC
Version:           0.4 (using KDE 3.4.0, Gentoo)
Compiler:          gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.9-gentoo-r6

to reproduce:

- run KPDF without a document
- select Settings -> Full Screen

it is not obvious how to restore the normal window, because there is no context menu available (because of no document loaded).

the user HAS to know the Ctrl+Shift+F shortcut otherwise he/she is stuck in the fullscreen mode.
Comment 1 Albert Astals Cid 2005-03-05 14:26:30 UTC
CVS commit by aacid: 

Show contect menu when in FullScreen even if no document is open.
Thanks for notyfing will be in KDE 3.4.1
BUGS: 100881


  M +5 -0      pageview.cpp   1.44.2.3


--- kdegraphics/kpdf/ui/pageview.cpp  #1.44.2.2:1.44.2.3
@@ -835,5 +835,10 @@ void PageView::contentsMouseReleaseEvent
     // don't perform any mouse action when no document is shown
     if ( d->items.isEmpty() )
+    {
+        // ..except for right Clicks (emitted even it viewport is empty)
+        if ( e->button() == RightButton )
+            emit rightClick( 0, e->globalPos() );
         return;
+    }
 
     // don't perform any mouse action when viewport is autoscrolling