Skip to content
Permalink
Browse files

gpm-backlight: replace deprecated GDK_DEVICE_MANAGER

  • Loading branch information...
raveit65 committed Aug 13, 2018
1 parent d5d6e8c commit 71eb5487cb205d5e637439305232f4bad626a04a
Showing with 10 additions and 10 deletions.
  1. +10 −10 src/gpm-backlight.c
@@ -209,9 +209,9 @@ gpm_backlight_dialog_show (GpmBacklight *backlight)
GdkScreen *pointer_screen;
GdkRectangle geometry;
GdkMonitor *monitor;
GdkDisplay *display;
GdkDeviceManager *device_manager;
GdkDevice *device;
GdkDisplay *display;
GdkSeat *seat;
GdkDevice *device;

/*
* get the window size
@@ -229,13 +229,13 @@ gpm_backlight_dialog_show (GpmBacklight *backlight)
}

pointer_screen = NULL;
display = gtk_widget_get_display (backlight->priv->popup);
device_manager = gdk_display_get_device_manager (display);
device = gdk_device_manager_get_client_pointer (device_manager);
gdk_device_get_position (device,
&pointer_screen,
&pointer_x,
&pointer_y);
display = gtk_widget_get_display (backlight->priv->popup);
seat = gdk_display_get_default_seat (display);
device = gdk_seat_get_pointer (seat);
gdk_device_get_position (device,
&pointer_screen,
&pointer_x,
&pointer_y);

monitor = gdk_display_get_monitor_at_point (gdk_screen_get_display (pointer_screen),
pointer_x,

0 comments on commit 71eb548

Please sign in to comment.
You can’t perform that action at this time.