vain/pdfPres — Issue #22: Stop Q and Esc quitting when in full screen mode
Author: tonk
Created: 2012-01-02 12:18:30+00:00
State: open

When I'm in full screen mode I don't want the program to quit when I press the Q or Esc key.
I patched the program a little, so that when you press Q or Esc in fullscreen mode it just leaves fullscreen.
A second press of Q or Esc leaves the program.

Patch:

--- pdfpres.org/pdfpres.c 2012-01-02 13:14:29.993832044 +0100
+++ pdfpres/pdfpres.c 2012-01-02 11:02:46.575234319 +0100
@@ -1085,8 +1086,15 @@

case GDK_Escape:
case GDK_q:
- changed = FALSE;
- onQuit(NULL, NULL, NULL);
+ if (isFullScreen == TRUE)
+ {
+ toggleFullScreen();
+ }
+ else
+ {
+ changed = FALSE;
+ onQuit(NULL, NULL, NULL);
+ }
break;

case GDK_i: