[libwnck/wip/muktupavels/gnome-3-20: 12/12] tasklist: avoid deprecated GdkDeviceManager
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/muktupavels/gnome-3-20: 12/12] tasklist: avoid deprecated GdkDeviceManager
- Date: Tue, 22 Mar 2016 15:52:54 +0000 (UTC)
commit d39175cfd644384b6e5b124a0d89964dd3161e09
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Mar 22 17:28:18 2016 +0200
tasklist: avoid deprecated GdkDeviceManager
libwnck/tasklist.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index 1f254df..96be484 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -2623,7 +2623,7 @@ wnck_task_position_menu (GtkMenu *menu,
{
GtkWidget *widget = GTK_WIDGET (user_data);
GdkWindow *window;
- GdkDeviceManager *dev_manager;
+ GdkSeat *seat;
GdkDevice *pointer;
GtkAllocation allocation;
GtkRequisition requisition;
@@ -2647,8 +2647,8 @@ wnck_task_position_menu (GtkMenu *menu,
else
menu_ypos += allocation.height;
- dev_manager = gdk_display_get_device_manager (gtk_widget_get_display (widget));
- pointer = gdk_device_manager_get_client_pointer (dev_manager);
+ seat = gdk_display_get_default_seat (gtk_widget_get_display (widget));
+ pointer = gdk_seat_get_pointer (seat);
gdk_window_get_device_position (window, pointer, &pointer_x, &pointer_y, NULL);
if (requisition.width < pointer_x)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]