Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit cdea97c

Browse files
committed
try without set_grid_focus
1 parent dac4b20 commit cdea97c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

neovim_gui/gtk_ui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def create_drawing_area(self, handle):
133133

134134
def start(self, bridge):
135135
"""Start the UI event loop."""
136-
bridge.attach(80, 24, rgb=True, ext_cmdline=False, ext_multigrid=True)#, ext_messages=True)
136+
bridge.attach(80, 24, rgb=True, ext_multigrid=True)#, ext_cmdline=False)#, ext_messages=True)
137137
im_context = Gtk.IMMulticontext()
138138
im_context.set_use_preedit(False) # TODO: preedit at cursor position
139139
im_context.connect('commit', self._gtk_input)
@@ -175,6 +175,7 @@ def _nvim_set_grid(self, handle):
175175
self._screen.cursor_goto(row,col)
176176
self._drawing_area = self.g._drawing_area
177177
self._window= self.g._window
178+
self._nvim_set_grid_focus(handle)
178179

179180
def _nvim_set_grid_focus(self, handle):
180181
self.g_focus = self.grids[handle]

neovim_gui/ui_bridge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,18 @@ def apply_updates():
9191
# l = [','.join([str(a) for a in args])
9292
# for args in update[1:]]
9393
# print >> sys.stderr, update[0], ' '.join(l)
94-
if self.debug_events:
95-
print(self._ui._curgrid, end=' ', file=sys.stderr)
9694
try:
9795
handler = getattr(self._ui, '_nvim_' + update[0])
9896
nparam = len(signature(handler).parameters)
9997

10098

10199
except AttributeError:
102100
if self.debug_events:
101+
print(self._ui._curgrid, end=' ', file=sys.stderr)
103102
print(repr(update), file=sys.stderr)
104103
else:
105104
if self.debug_events:# and len(update[1]) > nparam:
105+
print(self._ui._curgrid, end=' ', file=sys.stderr)
106106
print(repr(update), file=sys.stderr)
107107
for args in update[1:]:
108108
handler(*args[:nparam])

0 commit comments

Comments
 (0)