diff options
author | Manuel Bachmann <manuel.bachmann@open.eurogiciel.org> | 2014-08-04 09:55:51 +0200 |
---|---|---|
committer | Manuel Bachmann <manuel.bachmann@open.eurogiciel.org> | 2014-08-04 09:55:51 +0200 |
commit | 8ed091f70542ed084aa50d1cfcf106aa56dc4e6c (patch) | |
tree | 23d2f38fba4662bff2231fcb7956752bd436bbb2 | |
parent | 8143737a2c41110e572e6a109e16ab70e220a90e (diff) | |
download | weston-common-8ed091f70542ed084aa50d1cfcf106aa56dc4e6c.tar.gz weston-common-8ed091f70542ed084aa50d1cfcf106aa56dc4e6c.tar.bz2 weston-common-8ed091f70542ed084aa50d1cfcf106aa56dc4e6c.zip |
tz-launcher: activate the window when it gets focusedsubmit/tizen_common/20140807.141416
Use the keyboard focus handler to trigger a redraw, and set
the "active" window border each time the window gets
focused (and not only when the pointer activates a widget).
Change-Id: I41271eacad7ceac303073abdc68c8ff729b8dbc8
Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
-rw-r--r-- | src/tz-launcher-wl.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tz-launcher-wl.c b/src/tz-launcher-wl.c index eddb450..4ef94a0 100644 --- a/src/tz-launcher-wl.c +++ b/src/tz-launcher-wl.c @@ -184,6 +184,13 @@ sigchild_handler (int s) } static void +keyboard_focus_handler(struct window *window, + struct input *input, void *data) +{ + window_schedule_redraw(main_window->window); +} + +static void launcher_button_handler(struct widget *widget, struct input *input, uint32_t time, uint32_t button, @@ -322,6 +329,7 @@ main_window_add_launcher (gchar **desktopentry) wl_list_insert(main_window->launcher_list.prev, &launcher->link); launcher->widget = widget_add_widget(main_window->widget, launcher); + window_set_keyboard_focus_handler(main_window->window, keyboard_focus_handler); widget_set_enter_handler(launcher->widget, launcher_enter_handler); widget_set_leave_handler(launcher->widget, launcher_leave_handler); widget_set_motion_handler(launcher->widget, launcher_motion_handler); |