Hello community,

here is the log from the commit of package tigervnc for openSUSE:Factory 
checked in at 2019-01-15 13:15:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tigervnc (Old)
 and      /work/SRC/openSUSE:Factory/.tigervnc.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tigervnc"

Tue Jan 15 13:15:12 2019 rev:55 rq:663689 version:1.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/tigervnc/tigervnc.changes        2018-10-01 
09:05:58.499863986 +0200
+++ /work/SRC/openSUSE:Factory/.tigervnc.new.28833/tigervnc.changes     
2019-01-15 13:15:14.220411440 +0100
@@ -1,0 +2,6 @@
+Tue Jan  8 12:38:42 UTC 2019 - m...@suse.com
+
+- Add U_viewer-reset-ctrl-alt-to-menu-state-on-focus.patch
+  * Fix the ALT and CTRL buttons in viewer's F8 menu. (bsc#1119354)
+
+-------------------------------------------------------------------

New:
----
  U_viewer-reset-ctrl-alt-to-menu-state-on-focus.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tigervnc.spec ++++++
--- /var/tmp/diff_new_pack.qIsrE2/_old  2019-01-15 13:15:15.160410702 +0100
+++ /var/tmp/diff_new_pack.qIsrE2/_new  2019-01-15 13:15:15.160410702 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package tigervnc
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -138,6 +138,7 @@
 Patch8:         u_tigervnc-add-autoaccept-parameter.patch
 Patch9:         u_change-button-layout-in-ServerDialog.patch
 Patch10:        n_correct_path_in_desktop_file.patch
+Patch11:        U_viewer-reset-ctrl-alt-to-menu-state-on-focus.patch
 
 %description
 TigerVNC is an implementation of VNC (Virtual Network Computing), a
@@ -251,6 +252,7 @@
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 
 pushd unix/xserver
 patch -p1 < ../xserver120.patch

++++++ U_viewer-reset-ctrl-alt-to-menu-state-on-focus.patch ++++++
>From 9f83180219380c690fb743182308bc2d534b8b1b Mon Sep 17 00:00:00 2001
From: Dominique Martinet <asmad...@codewreck.org>
Date: Sun, 8 Jul 2018 02:15:43 +0900
Subject: [PATCH] viewer: reset ctrl / alt to menu state on focus

Setting Ctrl or Alt key on menu only sends the key press, and the
state is lost when focus is lost and recovered.
This checks the menu variable and sends the keys again if needed.
---
 vncviewer/Viewport.cxx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index 4e23dc8c..317f06b2 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -635,6 +635,12 @@ int Viewport::handle(int event)
       exit_vncviewer(e.str());
     }
 
+    // Resend Ctrl/Alt if needed
+    if (menuCtrlKey)
+      handleKeyPress(0x1d, XK_Control_L);
+    if (menuAltKey)
+      handleKeyPress(0x38, XK_Alt_L);
+
     // Yes, we would like some focus please!
     return 1;
 
-- 
2.16.4


Reply via email to