Table of Contents

Name

AppleWM - Apple rootless window management extension.

Syntax

#include <X11/extensions/applewm.h>
Bool XAppleWMQueryExtension (Display *dpy, 
        int *event_basep, int *error_basep);

Status XAppleWMQueryVersion (Display *dpy,
        int *major_versionp, int *minor_versionp);

Bool XAppleWMDisableUpdate (Display *dpy, int screen);

Bool XAppleWMReenableUpdate (Display *dpy, int screen);

Bool XAppleWMSelectInput (Display *dpy, unsigned long mask);

Bool XAppleWMSetWindowMenu (Display *dpy, int nitems,
        const char **items);

Bool XAppleWMSetWindowMenuWithShortcuts (Display *dpy,
        int nitems, const char **items,
        const char *shortcuts);

Bool XAppleWMSetWindowMenuCheck (Display *dpy, int index);

Bool XAppleWMSetFrontProcess (Display *dpy);

Bool XAppleWMSetWindowLevel (Display *dpy, Window window,
        int level);

Bool XAppleWMSetCanQuit (Display *dpy, Bool state);

Bool XAppleWMFrameGetRect (Display *dpy,
        unsigned int frame_class,
        unsigned int frame_rect,
        short inner_x, short inner_y,
        short inner_w, short inner_h,
        short outer_x, short outer_y,
        short outer_w, short outer_h,
        short *ret_x, short *ret_y,
        short *ret_w, short *ret_h);

unsigned int XAppleWMFrameHitTest (Display *dpy,
        unsigned int frame_class,
        short point_x, short point_y,
        short inner_x, short inner_y,
        short inner_w, short inner_h,
        short outer_x, short outer_y,
        short outer_w, short outer_h);

Bool XAppleWMFrameDraw (Display *dpy, int screen,
        Window window,
        unsigned int frame_class,
        unsigned int frame_attr,
        short inner_x, short inner_y,
        short inner_w, short inner_h,
        short outer_x, short outer_y,
        short outer_w, short outer_h,
        unsigned int title_length,
        const unsigned char *title_bytes);

Arguments

dpy
Specifies the connection to the X server.
screen
Specifies which screen.
mask
Mask of event types the client is interested in.
window
Specifies which window.
level
Specifies the window level.
frame_class
Specifies the class of window frame decoration.
frame_rect
Specifies which rectangle to return from the window frame decoration.
frame_attr
A mask specifying the attributes of the window frame decoration.
inner_x,inner_y,inner_w,inner_h
Rectangle of the window content inside the window frame decoration.
outer_x,outer_y,outer_w,outer_h
Rectangle of the outer border of the window frame decoration.
point_x,point_y
Specifies the coordinates of the mouse up event.

Datatypes

Events

typedef struct {
    int type;