summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-11 07:55:02 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-11 07:55:02 +0000
commitf1114045b02cfa3fc7a937df4acf08e98da6e579 (patch)
tree67d43a4f1c55ba2fa7c44500f8998f81229938b2
parentb5716e703c2c96f12c73c2040ff37a7aa2c9c9de (diff)
fix pointer warping for new client windows to not start from a random location
SVN revision: 83809
-rw-r--r--ChangeLog4
-rw-r--r--NEWS1
-rw-r--r--src/bin/e_border.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 64fff6196..e5d11ac15 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12013-02-11 Mike Blumenkrantz
2
3 * fixed bug where pointer warping to new clients would start at a random location
4
12013-02-08 Cedric Bail 52013-02-08 Cedric Bail
2 6
3 * remove call to efreet_menu_parse from a thread. 7 * remove call to efreet_menu_parse from a thread.
diff --git a/NEWS b/NEWS
index 691bfdc2a..131230c84 100644
--- a/NEWS
+++ b/NEWS
@@ -168,3 +168,4 @@ Fixes:
168 * fix clock timerfd usage to actually detect date changes 168 * fix clock timerfd usage to actually detect date changes
169 * keyboard mapping change now also disables for window class "vmware" 169 * keyboard mapping change now also disables for window class "vmware"
170 * don't call efreet_menu_parse from a thread 170 * don't call efreet_menu_parse from a thread
171 * fixed bug where pointer warping to new clients would start at a random location
diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index f3536f504..076557aeb 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -10422,7 +10422,7 @@ e_border_activate(E_Border *bd, Eina_Bool just_do_it)
10422 /* XXX ooffice does send this request for 10422 /* XXX ooffice does send this request for
10423 config dialogs when the main window gets focus. 10423 config dialogs when the main window gets focus.
10424 causing the pointer to jump back and forth. */ 10424 causing the pointer to jump back and forth. */
10425 if ((e_config->focus_policy != E_FOCUS_CLICK) && 10425 if ((e_config->focus_policy != E_FOCUS_CLICK) && (!bd->new_client) &&
10426 !(bd->client.icccm.name && !strcmp(bd->client.icccm.name, "VCLSalFrame"))) 10426 !(bd->client.icccm.name && !strcmp(bd->client.icccm.name, "VCLSalFrame")))
10427 ecore_x_pointer_warp(bd->zone->container->win, 10427 ecore_x_pointer_warp(bd->zone->container->win,
10428 bd->x + (bd->w / 2), bd->y + (bd->h / 2)); 10428 bd->x + (bd->w / 2), bd->y + (bd->h / 2));