diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index cfdd764..a379ee5 100644 --- a/src/window.c +++ b/src/window.c @@ -244,6 +244,47 @@ XConfigureWindow(Display *xdisplay, Window xwindow, } WL_EXPORT int +XReparentWindow(Display *xdisplay, Window xwindow, + Window xparent, int x, int y) +{ + struct csx_display *display = csx_display(xdisplay); + struct csx_window *window, *parent; + + window = csx_display_lookup_resource(display, xwindow); + if (window == NULL) { + csx_display_bad_window(display); + return 0; /* what's the return value? */ + } + + parent = csx_display_lookup_resource(display, xparent); + if (parent == NULL) { + csx_display_bad_window(display); + return 0; /* what's the return value? */ + } + + /* FIXME: Lot more to do here... */ + wl_list_remove(&window->link); + wl_list_insert(&parent->child_list, &window->link); +} + +WL_EXPORT int +XResizeWindow(Display *display, Window xwindow, + unsigned int width, unsigned int height) +{ +} + +WL_EXPORT int +XMoveResizeWindow(Display *display, Window xwindow, + int x, int y, unsigned int width, unsigned int height) +{ +} + +WL_EXPORT int +XMoveWindow(Display *display, Window xwindow, int x, int y) +{ +} + +WL_EXPORT int XLowerWindow(Display *xdisplay, Window xwindow) { struct csx_display *display = csx_display(xdisplay); @@ -257,6 +298,11 @@ XLowerWindow(Display *xdisplay, Window xwindow) } WL_EXPORT int +XRaiseWindow(Display *display, Window xwindow) +{ +} + +WL_EXPORT int XMapRaised(Display *xdisplay, Window xwindow) { struct csx_display *display = csx_display(xdisplay); |