diff --git a/src/terminal.cpp b/src/terminal.cpp index 9bbc543..8d7b994 100644 --- a/src/terminal.cpp +++ b/src/terminal.cpp @@ -41,8 +41,8 @@ Terminal::Terminal() : Source::CommonView() { invisible_tag = get_buffer()->create_tag(); invisible_tag->property_invisible() = true; - link_mouse_cursor = Gdk::Cursor::create(Gdk::CursorType::HAND1); - default_mouse_cursor = Gdk::Cursor::create(Gdk::CursorType::XTERM); + link_mouse_cursor = Gdk::Cursor::create(get_display(), Gdk::CursorType::HAND1); + default_mouse_cursor = Gdk::Cursor::create(get_display(), Gdk::CursorType::XTERM); class DetectPossibleLink { bool delimiter_found = false, dot_found = false; diff --git a/src/tooltips.cpp b/src/tooltips.cpp index 15078b2..85c4243 100644 --- a/src/tooltips.cpp +++ b/src/tooltips.cpp @@ -110,8 +110,8 @@ void Tooltip::show(bool disregard_drawn, const std::function &on_motion) tooltip_text_view->get_style_context()->add_class("juci_tooltip_text_view"); tooltip_text_view->set_editable(false); - static auto link_mouse_cursor = Gdk::Cursor::create(Gdk::CursorType::HAND1); - static auto default_mouse_cursor = Gdk::Cursor::create(Gdk::CursorType::XTERM); + static auto link_mouse_cursor = Gdk::Cursor::create(window->get_display(), Gdk::CursorType::HAND1); + static auto default_mouse_cursor = Gdk::Cursor::create(window->get_display(), Gdk::CursorType::XTERM); tooltip_text_view->signal_motion_notify_event().connect([this, tooltip_text_view](GdkEventMotion *event) { Gtk::TextIter iter; int location_x, location_y;