[notification-daemon] nd-queue: don't use deprecated gdk_display_get_pointer
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [notification-daemon] nd-queue: don't use deprecated gdk_display_get_pointer
- Date: Sat, 11 Jul 2015 16:50:24 +0000 (UTC)
commit 9f376d3e04bc9f642d1685c7042f9dc95bf147b0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Jul 11 19:47:27 2015 +0300
nd-queue: don't use deprecated gdk_display_get_pointer
src/nd-queue.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/nd-queue.c b/src/nd-queue.c
index 06dda82..323f364 100644
--- a/src/nd-queue.c
+++ b/src/nd-queue.c
@@ -570,15 +570,18 @@ nd_queue_length (NdQueue *queue)
static NdStack *
get_stack_with_pointer (NdQueue *queue)
{
+ GdkDisplay *display;
+ GdkDeviceManager *device_manager;
+ GdkDevice *pointer;
GdkScreen *screen;
int x, y;
int monitor_num;
- gdk_display_get_pointer (gdk_display_get_default (),
- &screen,
- &x,
- &y,
- NULL);
+ display = gdk_display_get_default ();
+ device_manager = gdk_display_get_device_manager (display);
+ pointer = gdk_device_manager_get_client_pointer (device_manager);
+
+ gdk_device_get_position (pointer, &screen, &x, &y);
monitor_num = gdk_screen_get_monitor_at_point (screen, x, y);
if (monitor_num >= queue->priv->screen->n_stacks) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]