fix pointer warping for new client windows to not start from a random location

SVN revision: 83809
This commit is contained in:
Mike Blumenkrantz 2013-02-11 07:55:02 +00:00
parent b5716e703c
commit f1114045b0
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-02-11 Mike Blumenkrantz
* fixed bug where pointer warping to new clients would start at a random location
2013-02-08 Cedric Bail 2013-02-08 Cedric Bail
* remove call to efreet_menu_parse from a thread. * remove call to efreet_menu_parse from a thread.

1
NEWS
View File

@ -168,3 +168,4 @@ Fixes:
* fix clock timerfd usage to actually detect date changes * fix clock timerfd usage to actually detect date changes
* keyboard mapping change now also disables for window class "vmware" * keyboard mapping change now also disables for window class "vmware"
* don't call efreet_menu_parse from a thread * don't call efreet_menu_parse from a thread
* fixed bug where pointer warping to new clients would start at a random location

View File

@ -10422,7 +10422,7 @@ e_border_activate(E_Border *bd, Eina_Bool just_do_it)
/* XXX ooffice does send this request for /* XXX ooffice does send this request for
config dialogs when the main window gets focus. config dialogs when the main window gets focus.
causing the pointer to jump back and forth. */ causing the pointer to jump back and forth. */
if ((e_config->focus_policy != E_FOCUS_CLICK) && if ((e_config->focus_policy != E_FOCUS_CLICK) && (!bd->new_client) &&
!(bd->client.icccm.name && !strcmp(bd->client.icccm.name, "VCLSalFrame"))) !(bd->client.icccm.name && !strcmp(bd->client.icccm.name, "VCLSalFrame")))
ecore_x_pointer_warp(bd->zone->container->win, ecore_x_pointer_warp(bd->zone->container->win,
bd->x + (bd->w / 2), bd->y + (bd->h / 2)); bd->x + (bd->w / 2), bd->y + (bd->h / 2));