~ken-vandine/notify-osd/new_libnotify

« back to all changes in this revision

Viewing changes to src/defaults.c

  • Committer: Tony Wang
  • Date: 2010-09-20 11:36:04 UTC
  • mto: This revision was merged to the branch mainline in revision 429.
  • Revision ID: wwwjfy@gmail.com-20100920113604-61syfyx352lg2w0g
fix the bug about the display position for dual-monitor screen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2440
2440
        gint         panel_monitor    = 0;
2441
2441
        gint         aw_monitor;
2442
2442
        gboolean     has_panel_window = FALSE;
 
2443
        gboolean     follow_focus     = defaults_multihead_does_focus_follow (self);
2443
2444
 
2444
2445
        g_return_if_fail (self != NULL && IS_DEFAULTS (self));
2445
2446
 
2467
2468
                has_panel_window  = TRUE;
2468
2469
        }
2469
2470
 
2470
 
        if (defaults_multihead_does_focus_follow (self))
 
2471
        if (follow_focus)
2471
2472
        {
2472
2473
                g_debug ("multi_head_focus_follow mode");
2473
2474
                monitor = gdk_screen_get_monitor_at_point (screen, mx, my);
2505
2506
        {
2506
2507
                /* position the corner on the selected monitor */
2507
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
2511
                g_debug ("no panel detetected; using workarea fallback");
2511
2512