Commit 6c60e001c5633f0ea102388b6d5e7d97d9da6692
1 parent
c84279db
Exists in
master
and in
1 other branch
Hide cursor position when offline.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/terminal/drawing/oia.c
... | ... | @@ -144,7 +144,7 @@ static void setup_cursor_position(GdkRectangle *rect, v3270FontInfo *metrics, ca |
144 | 144 | rect->width = metrics->width * 8; |
145 | 145 | rect->x -= rect->width; |
146 | 146 | |
147 | - if(lib3270_get_toggle(host,LIB3270_TOGGLE_CURSOR_POS)) | |
147 | + if(lib3270_get_toggle(host,LIB3270_TOGGLE_CURSOR_POS) && lib3270_is_connected(host)) | |
148 | 148 | { |
149 | 149 | int addr = lib3270_get_cursor_address(host); |
150 | 150 | draw_cursor_position(cr,rect,metrics,addr/cols,addr%cols); |
... | ... | @@ -871,7 +871,7 @@ void v3270_update_cursor(H3270 *session, unsigned short row, unsigned short col, |
871 | 871 | v3270_queue_draw_area(GTK_WIDGET(terminal),terminal->cursor.rect.x,0,1,terminal->oia.rect->y-3); |
872 | 872 | } |
873 | 873 | |
874 | - if(lib3270_get_toggle(session,LIB3270_TOGGLE_CURSOR_POS)) | |
874 | + if(lib3270_get_toggle(session,LIB3270_TOGGLE_CURSOR_POS) && lib3270_is_connected(session)) | |
875 | 875 | { |
876 | 876 | // Update OIA |
877 | 877 | GdkRectangle * rect; | ... | ... |