Bug 100881 - no context menu when no document opened: not possible to restore from full screen
Summary: no context menu when no document opened: not possible to restore from full sc...
Status: RESOLVED FIXED
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: 0.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-05 12:45 UTC by Wilbert Berendsen
Modified: 2005-03-05 14:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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