vain / pdfPres

[Discontinued] Dual head PDF presenter: Current slide with context + current slide in fullscreen (Linux, BSD).
http://www.uninformativ.de/projects/_discontinued/pdfpres/
17 stars 10 forks source link

Stop Q and Esc quitting when in full screen mode #22

Closed tonk closed 12 years ago

tonk commented 12 years ago

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:
vain commented 12 years ago

Hum, this boils down to a matter of personal taste. I, for one, would like to be able to leave the program with just one keypress.

tonk commented 12 years ago

Agree. But would it be possible to make it a config option??

vain commented 12 years ago

I admit that it might be useful to have that feature, so I implemented it. I think I'll push that commit this evening, it just needs a little more testing.