diff options
author | Arvind Samptur <arvind.samptur@wipro.com> | 2004-08-16 10:26:47 +0000 |
---|---|---|
committer | Arvind Samptur <arvind@src.gnome.org> | 2004-08-16 10:26:47 +0000 |
commit | a5595b48d772a0b5080cd3b21180411ca4221668 (patch) | |
tree | 8ece8ff6f2ea5ad8090558dcac77addae9869c65 | |
parent | f17cffaee0b723041bb1d2872b8be6061c913dff (diff) | |
download | libwnck-a5595b48d772a0b5080cd3b21180411ca4221668.tar.gz |
Get the AtkComponent co-ordinates right. Fixes #136447
2004-08-16 Arvind Samptur <arvind.samptur@wipro.com>
* libwnck/workspace-accessible.c:
(wnck_workspace_accessible_get_extents): Get the AtkComponent
co-ordinates right. Fixes #136447
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | libwnck/workspace-accessible.c | 7 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2004-08-16 Arvind Samptur <arvind.samptur@wipro.com> + + * libwnck/workspace-accessible.c: + (wnck_workspace_accessible_get_extents): Get the AtkComponent + co-ordinates right. Fixes #136447 + 2004-08-15 Elijah Newren <newren@math.utah.edu> Fix window activation vs. minimization for mouse focus. (fixes diff --git a/libwnck/workspace-accessible.c b/libwnck/workspace-accessible.c index e5c61e5..8e4895f 100644 --- a/libwnck/workspace-accessible.c +++ b/libwnck/workspace-accessible.c @@ -107,6 +107,7 @@ wnck_workspace_accessible_get_extents (AtkComponent *component, GtkWidget *widget; AtkObject *parent; GObject *g_obj; + int px, py; g_return_if_fail (WNCK_IS_WORKSPACE_ACCESSIBLE (component)); @@ -134,10 +135,12 @@ wnck_workspace_accessible_get_extents (AtkComponent *component, g_return_if_fail (WNCK_IS_PAGER (pager)); + atk_component_get_position (ATK_COMPONENT (parent), &px,&py, coords); + _wnck_pager_get_workspace_rect (pager, WNCK_WORKSPACE_ACCESSIBLE (component)->index, &rect); - *x = rect.x; - *y = rect.y; + *x = rect.x + px; + *y = rect.y + py; *height = rect.height; *width = rect.width; } |