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

Bug #447152 reported by Kelly
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
notify-osd (Ubuntu)
In Progress
Low
Mirco Müller

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.

Revision history for this message
Kelly (kelly-k-gordon) wrote :
David Barth (dbarth)
Changed in notify-osd:
assignee: nobody → Mirco Müller (macslow)
status: New → Triaged
importance: Undecided → Medium
milestone: none → ubuntu-9.10
David Barth (dbarth)
Changed in notify-osd:
importance: Medium → Low
Mirco Müller (macslow)
Changed in notify-osd:
status: Triaged → In Progress
David Barth (dbarth)
Changed in notify-osd:
milestone: ubuntu-9.10 → ubuntu-9.10-sru
Revision history for this message
Eduard Gotwig (gotwig) wrote :

still in progress :O ?

affects: notify-osd → notify-osd (Ubuntu)
Changed in notify-osd (Ubuntu):
milestone: ubuntu-9.10-sru → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.