diff options
author | rbuj <[email protected]> | 2021-03-10 11:51:43 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-03-15 19:27:23 +0100 |
commit | b462aeed6e57cf9361329233c361fb6f0d72897e (patch) | |
tree | 17d18d02fa6268146874d08aeed5dd640ebd74c1 /src/daemon | |
parent | 61620f2279c7899c153791260dd203476462be60 (diff) | |
download | mate-notification-daemon-b462aeed6e57cf9361329233c361fb6f0d72897e.tar.bz2 mate-notification-daemon-b462aeed6e57cf9361329233c361fb6f0d72897e.tar.xz |
Remove shadow warnings [-Wshadow]
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/daemon.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index d582007..d3b3c65 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -1525,7 +1525,6 @@ static gboolean notify_daemon_notify_handler(NotifyDaemonNotifications *object, GdkSeat *seat; GdkDevice *pointer; GdkScreen* screen; - gint x, y; theme_set_notification_arrow (nw, FALSE, 0, 0); @@ -1534,12 +1533,19 @@ static gboolean notify_daemon_notify_handler(NotifyDaemonNotifications *object, * number the user has set in gsettings. */ if (g_settings_get_boolean(daemon->gsettings, GSETTINGS_KEY_USE_ACTIVE_MONITOR)) { + gint coordinate_x, coordinate_y; + display = gdk_display_get_default (); seat = gdk_display_get_default_seat (display); pointer = gdk_seat_get_pointer (seat); - gdk_device_get_position (pointer, &screen, &x, &y); - monitor_id = gdk_display_get_monitor_at_point (gdk_screen_get_display (screen), x, y); + gdk_device_get_position (pointer, + &screen, + &coordinate_x, + &coordinate_y); + monitor_id = gdk_display_get_monitor_at_point (gdk_screen_get_display (screen), + coordinate_x, + coordinate_y); } else { @@ -1604,14 +1610,14 @@ static gboolean notify_daemon_notify_handler(NotifyDaemonNotifications *object, } else { - _NotifyPendingClose* data; + _NotifyPendingClose *notification_data; /* The notification was not shown, so queue up a close * for it */ - data = g_new0 (_NotifyPendingClose, 1); - data->id = id; - data->daemon = g_object_ref (daemon); - g_idle_add ((GSourceFunc) _close_notification_not_shown, data); + notification_data = g_new0 (_NotifyPendingClose, 1); + notification_data->id = id; + notification_data->daemon = g_object_ref (daemon); + g_idle_add ((GSourceFunc) _close_notification_not_shown, notification_data); } g_free (sound_file); |