[notification-daemon] Make stacks work correctly on multi-monitor setups
- From: William Jon McCann <mccann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [notification-daemon] Make stacks work correctly on multi-monitor setups
- Date: Sat, 9 Jan 2010 00:55:23 +0000 (UTC)
commit c8a34c42d6e211b953871b8b6af88f8105785cf9
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 8 19:45:21 2010 -0500
Make stacks work correctly on multi-monitor setups
src/daemon/stack.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/daemon/stack.c b/src/daemon/stack.c
index 8a07c82..b54abfa 100644
--- a/src/daemon/stack.c
+++ b/src/daemon/stack.c
@@ -206,10 +206,14 @@ notify_stack_shift_notifications(NotifyStack *stack,
gint *nw_y)
{
GdkRectangle workarea;
+ GdkRectangle monitor;
GSList *l;
gint x, y, shiftx = 0, shifty = 0, index = 1;
get_work_area(GTK_WIDGET(nw), &workarea);
+ gdk_screen_get_monitor_geometry (stack->screen, stack->monitor, &monitor);
+ gdk_rectangle_intersect (&monitor, &workarea, &workarea);
+
get_origin_coordinates(stack->location, &workarea, &x, &y,
&shiftx, &shifty, init_width, init_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]