fix bug where keyboard resizing of windows was not possible if timeout was set to zero

SVN revision: 82386
This commit is contained in:
Mike Blumenkrantz 2013-01-08 08:14:09 +00:00
parent 86d6885d39
commit c7d18cac51
3 changed files with 10 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2013-01-07 Mike Blumenkrantz
* Fixed bug where keyboard resizing of windows would not be possible if timeout was set to zero
2013-01-07 Tom "TAsn" Hacohen
* e_entry + e_scrollable: Fixed issues with smart members.

1
NEWS
View File

@ -61,3 +61,4 @@ Fixes:
* Fix build with uClibc.
* Restore default keybindings no longer restores two bindings for ctrl+alt+f
* entry/scrollframe: Fixed issues with submembers.
* Fixed bug where keyboard resizing of windows would not be possible if timeout was set to zero

View File

@ -3789,10 +3789,8 @@ _e_border_action_move_timeout(void *data __UNUSED__)
static void
_e_border_action_move_timeout_add(void)
{
if (!e_config->border_keyboard.timeout) return;
if (action_timer)
ecore_timer_reset(action_timer);
else
E_FN_DEL(ecore_timer_del, action_timer);
if (e_config->border_keyboard.timeout)
action_timer = ecore_timer_add(e_config->border_keyboard.timeout, _e_border_action_move_timeout, NULL);
}
@ -3902,9 +3900,9 @@ _e_border_action_resize_timeout(void *data __UNUSED__)
static void
_e_border_action_resize_timeout_add(void)
{
if (action_timer)
ecore_timer_del(action_timer);
action_timer = ecore_timer_add(e_config->border_keyboard.timeout, _e_border_action_resize_timeout, NULL);
E_FN_DEL(ecore_timer_del, action_timer);
if (e_config->border_keyboard.timeout)
action_timer = ecore_timer_add(e_config->border_keyboard.timeout, _e_border_action_resize_timeout, NULL);
}
static Eina_Bool