mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-29 01:04:56 +01:00
Use the widget's display
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
7da7bcb4c1
commit
f9d1d89bd4
1 changed files with 2 additions and 1 deletions
|
@ -622,7 +622,8 @@ cb_page_widget_link(ZathuraPage* page, void* data)
|
|||
bool enter = (bool) data;
|
||||
|
||||
GdkWindow* window = gtk_widget_get_parent_window(GTK_WIDGET(page));
|
||||
GdkCursor* cursor = gdk_cursor_new_for_display(gdk_display_get_default(), enter == true ? GDK_HAND1 : GDK_LEFT_PTR);
|
||||
GdkDisplay* display = gtk_widget_get_display(GTK_WIDGET(page));
|
||||
GdkCursor* cursor = gdk_cursor_new_for_display(display, enter == true ? GDK_HAND1 : GDK_LEFT_PTR);
|
||||
gdk_window_set_cursor(window, cursor);
|
||||
g_object_unref(cursor);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue