Changeset 46a47c0 in mainline for uspace/app/terminal/terminal.c
- Timestamp:
- 2023-01-16T20:34:01Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b0ae23f
- Parents:
- b3eeae5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/terminal/terminal.c
rb3eeae5 r46a47c0 1 1 /* 2 * Copyright (c) 202 1Jiri Svoboda2 * Copyright (c) 2023 Jiri Svoboda 3 3 * Copyright (c) 2012 Petr Koupy 4 4 * All rights reserved. … … 118 118 119 119 static void terminal_close_event(ui_window_t *, void *); 120 static void terminal_focus_event(ui_window_t *, void * );120 static void terminal_focus_event(ui_window_t *, void *, unsigned); 121 121 static void terminal_kbd_event(ui_window_t *, void *, kbd_event_t *); 122 122 static void terminal_pos_event(ui_window_t *, void *, pos_event_t *); 123 static void terminal_unfocus_event(ui_window_t *, void * );123 static void terminal_unfocus_event(ui_window_t *, void *, unsigned); 124 124 125 125 static ui_window_cb_t terminal_window_cb = { … … 833 833 834 834 /** Handle window focus event. */ 835 static void terminal_focus_event(ui_window_t *window, void *arg) 835 static void terminal_focus_event(ui_window_t *window, void *arg, 836 unsigned nfocus) 836 837 { 837 838 terminal_t *term = (terminal_t *) arg; 838 839 840 (void)nfocus; 839 841 term->is_focused = true; 840 842 term_update(term); … … 878 880 879 881 /** Handle window unfocus event. */ 880 static void terminal_unfocus_event(ui_window_t *window, void *arg) 882 static void terminal_unfocus_event(ui_window_t *window, void *arg, 883 unsigned nfocus) 881 884 { 882 885 terminal_t *term = (terminal_t *) arg; 883 886 884 term->is_focused = false; 885 term_update(term); 886 gfx_update(term->gc); 887 if (nfocus == 0) { 888 term->is_focused = false; 889 term_update(term); 890 gfx_update(term->gc); 891 } 887 892 } 888 893
Note:
See TracChangeset
for help on using the changeset viewer.