summaryrefslogtreecommitdiff
path: root/frontends/gtk/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/gtk/window.c')
-rw-r--r--frontends/gtk/window.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/frontends/gtk/window.c b/frontends/gtk/window.c
index f5c87ef87..4d2454216 100644
--- a/frontends/gtk/window.c
+++ b/frontends/gtk/window.c
@@ -48,9 +48,9 @@
#include "desktop/searchweb.h"
#include "desktop/textinput.h"
+#include "gtk/compat.h"
#include "gtk/selection.h"
#include "gtk/warn.h"
-#include "gtk/compat.h"
#include "gtk/gui.h"
#include "gtk/scaffolding.h"
#include "gtk/toolbar_items.h"
@@ -964,8 +964,7 @@ gui_window_create(struct browser_window *bw,
CONNECT(g->container, "destroy", window_destroy, g);
/* input method */
- gtk_im_context_set_client_window(g->input_method,
- nsgtk_layout_get_bin_window(g->layout));
+ nsgtk_im_context_set_client_widget(g->input_method, GTK_WIDGET(g->layout));
gtk_im_context_set_use_preedit(g->input_method, FALSE);
/* input method signals */
@@ -1286,8 +1285,7 @@ gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape)
gtk_widget_get_display(
GTK_WIDGET(g->layout)),
cursortype);
- gdk_window_set_cursor(nsgtk_widget_get_window(GTK_WIDGET(g->layout)),
- cursor);
+ nsgtk_widget_set_cursor(GTK_WIDGET(g->layout), cursor);
if (!nullcursor)
nsgdk_cursor_unref(cursor);