[Bug 352661] [NEW] enh: add hotkey for "toggle fullscreen"

Scott Scriven ubuntu at toykeeper.net
Tue Mar 31 20:00:51 UTC 2009


Public bug reported:

Binary package hint: xvnc4viewer

It would be nice to have a hotkey in xvnc4viewer to toggle fullscreen
mode.

I have needed VNC a lot lately for work, and often need to toggle
between fullscreen mode and the regular windowed mode.  I often only
need fullscreen mode for a few seconds, so I could end up spending half
that time just moving the mouse to the correct "F8 menu" item while
turning it on and off.

For my own use, I've hardcoded a hotkey into the program to speed up
this process, instead of having to hit F8 and mouse around to the option
on the menu.  This is by no means a good patch for general use (since
it's not documented or configurable), but it shows at least the minimum
necessary to make Hyper-f activate the fullscreen toggle.

--- CConn.cxx.orig	2009-03-30 21:22:56.000000000 -0600
+++ CConn.cxx	2009-03-30 21:23:30.000000000 -0600
@@ -145,6 +145,13 @@
         break;
       }
     }
+    else if (0 == strcmp(str, "f") && (ev->xkey.state & (Mod4Mask)) == Mod4Mask) {
+      if (w == desktop && ev->type == KeyPress) {
+        fullScreen = !fullScreen;
+        if (viewport) recreateViewport();
+        break;
+      }
+    }
     // drop through
 
   default:


This patch applies cleanly and works on xvnc4viewer 4.1.1+xorg1.0.2-0ubuntu7 (hardy).

** Affects: vnc4 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
enh: add hotkey for "toggle fullscreen"
https://bugs.launchpad.net/bugs/352661
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list