Merge lp:~wwwjfy/notify-osd/dual-monitor-fix into lp:notify-osd/lucid

Proposed by Tony Wang
Status: Merged
Approved by: David Barth
Approved revision: 427
Merged at revision: 429
Proposed branch: lp:~wwwjfy/notify-osd/dual-monitor-fix
Merge into: lp:notify-osd/lucid
Diff against target: 28 lines (+3/-2)
1 file modified
src/defaults.c (+3/-2)
To merge this branch: bzr merge lp:~wwwjfy/notify-osd/dual-monitor-fix
Reviewer Review Type Date Requested Status
David Barth (community) Approve
Review via email: mp+36004@code.launchpad.net

Commit message

fix the bug about the display position for dual-monitor screen.

Description of the change

fix the bug about the display position for dual-monitor screen.

To post a comment you must log in.
Revision history for this message
David Barth (dbarth) wrote :

Thanks for the fix.

review: Approve
Revision history for this message
Vincent Untz (vuntz) wrote :

Any idea if the patch will go in soon?

Revision history for this message
Mirco Müller (macslow) wrote :

I will work on reviewing/testing a number of patches for notify-osd this weekend. Depending on the state of contributor-agreements, which I'm not on top off atm, numerous stuff will land in notify-osd. This one is among the list of patches I'll work on, vuntz.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/defaults.c'
--- src/defaults.c 2009-10-25 06:00:23 +0000
+++ src/defaults.c 2010-09-20 11:49:39 +0000
@@ -2440,6 +2440,7 @@
2440 gint panel_monitor = 0;2440 gint panel_monitor = 0;
2441 gint aw_monitor;2441 gint aw_monitor;
2442 gboolean has_panel_window = FALSE;2442 gboolean has_panel_window = FALSE;
2443 gboolean follow_focus = defaults_multihead_does_focus_follow (self);
24432444
2444 g_return_if_fail (self != NULL && IS_DEFAULTS (self));2445 g_return_if_fail (self != NULL && IS_DEFAULTS (self));
24452446
@@ -2467,7 +2468,7 @@
2467 has_panel_window = TRUE;2468 has_panel_window = TRUE;
2468 }2469 }
24692470
2470 if (defaults_multihead_does_focus_follow (self))2471 if (follow_focus)
2471 {2472 {
2472 g_debug ("multi_head_focus_follow mode");2473 g_debug ("multi_head_focus_follow mode");
2473 monitor = gdk_screen_get_monitor_at_point (screen, mx, my);2474 monitor = gdk_screen_get_monitor_at_point (screen, mx, my);
@@ -2505,7 +2506,7 @@
2505 {2506 {
2506 /* position the corner on the selected monitor */2507 /* position the corner on the selected monitor */
2507 rect.y += panel_rect.y + panel_rect.height;2508 rect.y += panel_rect.y + panel_rect.height;
2508 } else if (! has_panel_window)2509 } else if (! (has_panel_window || follow_focus))
2509 {2510 {
2510 g_debug ("no panel detetected; using workarea fallback");2511 g_debug ("no panel detetected; using workarea fallback");
25112512

Subscribers

People subscribed via source and target branches

to all changes: