diff options
author | Cole Robinson <crobinso@redhat.com> | 2012-07-15 10:41:42 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2012-07-15 10:41:42 -0400 |
commit | a96a3245fb556dc02ff471c223c7728ea76b6fab (patch) | |
tree | c0904cdb27c36aec9baf7d93c9a0dbf3864c16c9 | |
parent | cf182296fc1127fc363a7d5601cf95bb118719d9 (diff) | |
download | virt-manager-a96a3245fb556dc02ff471c223c7728ea76b6fab.tar.gz |
Revert "Make VNC grab alt+tab when focused"
This reverts commit 32456e5ed736ee70e3da153bf95eacec3052fc9c.
Causes lots of focus issues with VNC and no tablet device :(
Example: https://bugzilla.redhat.com/show_bug.cgi?id=840240
-rw-r--r-- | src/virtManager/console.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/virtManager/console.py b/src/virtManager/console.py index 705a023d..167401b6 100644 --- a/src/virtManager/console.py +++ b/src/virtManager/console.py @@ -246,7 +246,6 @@ class Viewer(vmmGObject): vmmGObject.__init__(self) self.console = console self.display = None - self.need_keygrab = False def close(self): raise NotImplementedError() @@ -320,9 +319,6 @@ class VNCViewer(Viewer): # Last noticed desktop resolution self.desktop_resolution = None - # VNC viewer needs a bit of help grabbing keyboard in a friendly way - self.need_keygrab = True - def init_widget(self): self.set_grab_keys() @@ -715,17 +711,6 @@ class vmmConsolePages(vmmGObjectUI): self.topwin.set_title(title) - def grab_keyboard(self, do_grab): - if self.viewer and not self.viewer.need_keygrab: - return - - if (not do_grab or - not self.viewer or - not self.viewer.display): - gtk.gdk.keyboard_ungrab() - else: - gtk.gdk.keyboard_grab(self.viewer.display.window) - def viewer_focus_changed(self, ignore1=None, ignore2=None): has_focus = (self.viewer and self.viewer.display and @@ -739,8 +724,6 @@ class vmmConsolePages(vmmGObjectUI): else: self._enable_modifiers() - self.grab_keyboard(has_focus) - def pointer_grabbed(self, src_ignore): self.pointer_is_grabbed = True self.change_title() |