void xdg_toplevel_decoration(struct wl_listener *listener, void *data);
void xdg_surface_new(struct wl_listener *listener, void *data);
-int xwl_nr_parents(struct view *view);
void xwl_surface_new(struct wl_listener *listener, void *data);
void view_init_position(struct view *view);
#include "labwc.h"
#include "config/rcxml.h"
#include "config/keybind.h"
+#include "common/log.h"
+
+static int xwl_nr_parents(struct view *view)
+{
+ struct wlr_xwayland_surface *s = view->xwayland_surface;
+ int i = 0;
+
+ if (!s) {
+ warn("(%s) no xwayland surface\n", __func__);
+ return -1;
+ }
+ while (s->parent) {
+ s = s->parent;
+ ++i;
+ }
+ return i;
+}
static void show_one_xdg_view(struct view *view)
{
#include "labwc.h"
#include "common/log.h"
-int xwl_nr_parents(struct view *view)
-{
- struct wlr_xwayland_surface *s = view->xwayland_surface;
- int i = 0;
-
- if (!s) {
- warn("(%s) no xwayland surface\n", __func__);
- return -1;
- }
- while (s->parent) {
- s = s->parent;
- ++i;
- }
- return i;
-}
-
static bool has_ssd(struct view *view)
{
if (view->xwayland_surface->override_redirect)