mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Move xwl_nr_parents()
This commit is contained in:
parent
814ea5cb11
commit
a72c40a6b4
3 changed files with 17 additions and 17 deletions
|
|
@ -1,6 +1,23 @@
|
|||
#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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue