← Back to team overview

dx-packages team mailing list archive

[Bug 447152] Re: Bubble placement assumes the top left screen coordinate is (0, 0)

 

** Project changed: notify-osd => notify-osd (Ubuntu)

** Changed in: notify-osd (Ubuntu)
    Milestone: ubuntu-9.10-sru => None

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to notify-osd in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/447152

Title:
  Bubble placement assumes the top left screen coordinate is (0,0)

Status in “notify-osd” package in Ubuntu:
  In Progress

Bug description:
  I am using two monitors on my system, with a height difference between
  their resolutions.  The monitor on which the gnome-panel appears is
  positioned lower on the virtual screen.  As a result its top left
  screen co-ordinate is (0,48).

  The nett result is that "_window_look_for_top_panel_attributes"  in
  src/defaults.c:2408 is unable to find the gnome-panel to position the
  bubble relative to it, as it expects the panel to be at (0,0) not
  (0,48).

  Secondly "defaults_get_top_corner" in src/defaults.c:2530
  miscalculates the top position of the bubble when the gnome-panel is
  not at (0,0).  As far as I can tell, panel_rect.y (retrieved from
  gdk_window_get_frame_extents) already includes the offset defined by
  rect.y (retrieved from gdk_screen_get_monitor_geometry).

  Hopefully the attached patch makes things clearer.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/notify-osd/+bug/447152/+subscriptions