Merge lp:~jamessan/pangoterm/report-focus into lp:pangoterm

Proposed by James McCoy
Status: Merged
Merged at revision: 598
Proposed branch: lp:~jamessan/pangoterm/report-focus
Merge into: lp:pangoterm
Diff against target: 22 lines (+6/-0)
1 file modified
pangoterm.c (+6/-0)
To merge this branch: bzr merge lp:~jamessan/pangoterm/report-focus
Reviewer Review Type Date Requested Status
Paul "LeoNerd" Evans Approve
Review via email: mp+331827@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Paul "LeoNerd" Evans (leonerd) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'pangoterm.c'
2--- pangoterm.c 2017-08-17 18:37:30 +0000
3+++ pangoterm.c 2017-10-05 00:44:58 +0000
4@@ -1761,6 +1761,9 @@
5 PangoTerm *pt = user_data;
6 pt->has_focus = 1;
7
8+ VTermState *state = vterm_obtain_state(pt->vt);
9+ vterm_state_focus_in(state);
10+
11 if(CURSOR_ENABLED(pt)) {
12 repaint_cell(pt, pt->cursorpos);
13
14@@ -1774,6 +1777,9 @@
15 PangoTerm *pt = user_data;
16 pt->has_focus = 0;
17
18+ VTermState *state = vterm_obtain_state(pt->vt);
19+ vterm_state_focus_out(state);
20+
21 if(CURSOR_ENABLED(pt)) {
22 repaint_cell(pt, pt->cursorpos);
23

Subscribers

People subscribed via source and target branches

to status/vote changes: