diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-03 02:45:33 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-03 02:54:35 -0400 |
commit | 69f9ef58431e9f392e32066d8f288110311a2480 (patch) | |
tree | a72f4184c707dd649fd85136e034503ae4e7a3ce | |
parent | f16331c8e819be11379566ceaa391b7a1c3e1487 (diff) |
Add a few more stubs
-rw-r--r-- | src/window.c | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index d438555..8ff8179 100644 --- a/src/window.c +++ b/src/window.c @@ -175,6 +175,19 @@ XCreateSimpleWindow(Display *xdisplay, Window parent, int x, int y, CWBackPixel | CWBorderPixel, &attributes); } +WL_EXPORT Status +XGetWindowAttributes(Display *xdisplay, Window xwindow, + XWindowAttributes *attrs) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_GetWindowAttributes, 0); + + STUB(); + + return 1; +} + static void handle_ping(void *data, struct wl_shell_surface *shell_surface, uint32_t serial) @@ -367,6 +380,30 @@ XMapSubwindows(Display *xdisplay, Window xwindow) } WL_EXPORT int +XUnmapSubwindows(Display *xdisplay, Window xwindow) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_UnmapSubwindows, 0); + + STUB(); + + return 1; +} + +WL_EXPORT int +XUnmapWindow(Display *xdisplay, Window xwindow) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_UnmapWindow, 0); + + STUB(); + + return 1; +} + +WL_EXPORT int XChangeWindowAttributes(Display *xdisplay, Window xwindow, unsigned long mask, XSetWindowAttributes *attributes) { @@ -381,6 +418,8 @@ XChangeWindowAttributes(Display *xdisplay, Window xwindow, return 1; } + STUB(); + return 1; } @@ -456,6 +495,42 @@ XConfigureWindow(Display *xdisplay, Window xwindow, } WL_EXPORT int +XCirculateSubwindows(Display *xdisplay, Window xwindow, int direction) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_CirculateWindow, 0); + + STUB(); + + return 1; +} + +WL_EXPORT int +XCirculateSubwindowsDown(Display *xdisplay, Window xwindow) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_CirculateWindow, 0); + + STUB(); + + return 1; +} + +WL_EXPORT int +XCirculateSubwindowsUp(Display *xdisplay, Window xwindow) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_CirculateWindow, 0); + + STUB(); + + return 1; +} + +WL_EXPORT int XReparentWindow(Display *xdisplay, Window xwindow, Window xparent, int x, int y) { @@ -559,6 +634,33 @@ XMapRaised(Display *xdisplay, Window xwindow) return 1; } +WL_EXPORT Status +XGetGeometry(Display *xdisplay, Drawable drawable, + Window *xroot, int *x, int *y, + unsigned int *width, unsigned int *height, + unsigned int *border_width, unsigned int *depth) +{ + struct csx_display *display = csx_display(xdisplay); + struct csx_window *window; + + csx_display_enter(display, X_GetGeometry, 0); + + window = csx_display_lookup_resource(display, drawable); + if (window == NULL) { + csx_display_error(display, drawable, BadWindow); + return 0; + } + + *x = window->x; + *y = window->y; + *width = window->width; + *height = window->height; + *border_width = window->border_width; + *depth = window->depth; + + return 1; +} + void csx_window_destroy(struct csx_window *window) { @@ -599,6 +701,18 @@ XDestroyWindow(Display *xdisplay, Window xwindow) } WL_EXPORT int +XChangeSaveSet(Display *xdisplay, Window xwindow, int change_mode) +{ + struct csx_display *display = csx_display(xdisplay); + + csx_display_enter(display, X_ChangeSaveSet, 0); + + STUB(); + + return 1; +} + +WL_EXPORT int XDestroySubwindows(Display *xdisplay, Window xwindow) { struct csx_display *display = csx_display(xdisplay); |