~lightdm-gtk-greeter-team/lightdm-gtk-greeter/trunk

« back to all changes in this revision

Viewing changes to src/greeterbackground.c

  • Committer: Sean Davis
  • Date: 2018-02-18 14:40:54 UTC
  • Revision ID: smd.seandavis@gmail.com-20180218144054-14gvdihlz5u1mhpw
Add a note so future maintainers (myself included) know what's going on with the timestamp comparison

Show diffs side-by-side

added added

removed removed

Lines of Context:
735
735
    if (priv->active_monitor_change_in_progress)
736
736
        return;
737
737
 
 
738
    /* Prevents infinite signal emmission between two monitors (LP: #1410406, #1509780)
 
739
     * There are some rare scenarios when using multiple monitors that cause the greeter
 
740
     * to switch back and forth between the monitors indefinitely. By comparing the
 
741
     * timestamp at this precision (1/10th of a second), this should no longer be
 
742
     * possible.
 
743
     */
738
744
    timestamp = floor(g_get_monotonic_time () * 0.00001);
739
745
    if (timestamp == priv->active_monitor_change_last_timestamp)
740
746
        return;