Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 728952
Collapse All | Expand All

(-)a/src/tests/test-client.c (-1 / +6 lines)
Lines 22-28 Link Here
22
#include <gio/gunixinputstream.h>
22
#include <gio/gunixinputstream.h>
23
#include <gtk/gtk.h>
23
#include <gtk/gtk.h>
24
#include <gdk/gdkx.h>
24
#include <gdk/gdkx.h>
25
#ifdef GDK_WINDOWING_WAYLAND
25
#include <gdk/gdkwayland.h>
26
#include <gdk/gdkwayland.h>
27
#endif
26
#include <stdarg.h>
28
#include <stdarg.h>
27
#include <stdlib.h>
29
#include <stdlib.h>
28
#include <string.h>
30
#include <string.h>
Lines 46-53 window_export_handle_cb (GdkWindow *window, Link Here
46
{
48
{
47
  GdkWindow *gdk_window = gtk_widget_get_window (GTK_WIDGET (user_data));
49
  GdkWindow *gdk_window = gtk_widget_get_window (GTK_WIDGET (user_data));
48
50
51
#ifdef GDK_WINDOWING_WAYLAND
49
  if (!gdk_wayland_window_set_transient_for_exported (gdk_window,
52
  if (!gdk_wayland_window_set_transient_for_exported (gdk_window,
50
                                                      (gchar *) handle_str))
53
                                                      (gchar *) handle_str))
54
#endif
51
    g_print ("Fail to set transient_for exported window handle %s", handle_str);
55
    g_print ("Fail to set transient_for exported window handle %s", handle_str);
52
  gdk_window_set_modal_hint (gdk_window, TRUE);
56
  gdk_window_set_modal_hint (gdk_window, TRUE);
53
}
57
}
Lines 377-387 process_line (const char *line) Link Here
377
          goto out;
381
          goto out;
378
        }
382
        }
379
383
384
#ifdef GDK_WINDOWING_WAYLAND
380
      GdkWindow *parent_gdk_window = gtk_widget_get_window (parent_window);
385
      GdkWindow *parent_gdk_window = gtk_widget_get_window (parent_window);
381
      if (!gdk_wayland_window_export_handle (parent_gdk_window,
386
      if (!gdk_wayland_window_export_handle (parent_gdk_window,
382
                                             window_export_handle_cb,
387
                                             window_export_handle_cb,
383
                                             window,
388
                                             window,
384
                                             NULL))
389
                                             NULL))
390
#endif
385
        g_print ("Fail to export handle for window id %s", argv[2]);
391
        g_print ("Fail to export handle for window id %s", argv[2]);
386
    }
392
    }
387
  else if (strcmp (argv[0], "accept_focus") == 0)
393
  else if (strcmp (argv[0], "accept_focus") == 0)
388
- 

Return to bug 728952