Close Menu
    What's Hot

    The Compatibility Gap: What Modern Systems Actually Do to Legacy Interactive Content

    April 8, 2026

    XML::LibXML::Parser

    April 8, 2026

    XFBURN

    April 8, 2026
    Facebook X (Twitter) Instagram
    Command Linux
    • About
    • Man Pages
    • Arch Linux
    • Statistics
    • How to
      • Q&A
    • OS
      • Windows
    • Blog
      • Featured
    • MORE
      • Easter Eggs
      • IP Address
    • Write For Us
    • Contact Us
    Command Linux
    Home - man page - XSHAPE

    XSHAPE

    WillieBy WillieMarch 30, 2026Updated:March 30, 2026No Comments2 Mins Read
     

    NAME

    XShapeQueryExtension, XShapeQueryVersion, XShapeCombineRegion, XShapeCombineRectangles, XShapeCombineMask, XShapeCombineShape, XShapeOffsetShape, XShapeQueryExtents, XShapeSelectInput, XShapeInputSelected, XShapeGetRectangles – X nonrectangular shape functions  

    SYNTAX

    
    #include <X11/extensions/shape.h>
    
    Bool XShapeQueryExtension (
            Display *dpy,
            int *event_basep,
            int *error_basep);
    
    Status XShapeQueryVersion (
            Display *dpy,
            int *major_versionp,
            int *minor_versionp);
    
    void XShapeCombineRegion (
            Display *dpy,
            Window dest,
            int destKind,
            int xOff,
            int yOff,
            struct _XRegion *r,
            int op);
    
    void XShapeCombineRectangles (
            Display *dpy,
            XID dest,
            int destKind,
            int xOff,
            int yOff,
            XRectangle *rects,
            int n_rects,
            int op,
            int ordering);
    
    void XShapeCombineMask (
            Display *dpy,
            XID dest,
            int destKind,
            int xOff,
            int yOff,
            Pixmap src,
            int op);
    
    void XShapeCombineShape (
            Display *dpy,
            XID dest,
            int destKind,
            int xOff,
            int yOff,
            Pixmap src,
            int srcKind,
            int op);
    
    void XShapeOffsetShape (
            Display *dpy,
            XID dest,
            int destKind,
            int xOff,
            int yOff);
    
    Status XShapeQueryExtents (
            Display *dpy,
            Window window,
            int *bShaped,
            int *xbs,
            int *ybs,
            unsigned int *wbs,
            unsigned int *hbs,
            int *cShaped,
            int *xcs,
            int *ycs,
            unsigned int *wcs,
            unsigned int *hcs);
    
    void XShapeSelectInput (
            Display *dpy,
            Window window,
            unsigned longmask);
    
    unsigned long XShapeInputSelected (
            Display *dpy,
            Window window);
    
    XRectangle *XShapeGetRectangles (
            Display *dpy,
            Window window,
            int kind,
            int *count,
            int *ordering);
    
     

    STRUCTURES

    typedef struct {
        int type;   /* of event */
        unsigned long serial;       /* # of last request processed by server */
        Bool send_event;    /* true if this came from a SendEvent request */
        Display *display;   /* Display the event was read from */
        Window window;      /* window of event */
        int kind;   /* ShapeBounding or ShapeClip */
        int x, y;   /* extents of new region */
        unsigned width, height;
        Time time;  /* server timestamp when region changed */
        Bool shaped;        /* true if the region exists */
    } XShapeEvent;
    
     

    DESCRIPTION

    The X11 Nonrectangular Window Shape Extension adds nonrectangular windows to the X Window System.  

    PREDEFINED VALUES

    Operations:
    
    ShapeSet
    ShapeUnion
    ShapeIntersect
    ShapeSubtract
    ShapeInvert

    Shape Kinds:

    
    ShapeBounding
    ShapeClip

    Event defines:

    
    ShapeNotifyMask
    ShapeNotify
     

    BUGS

    This manual page needs a lot more work.  

    Willie
    • Website

    Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.

    Related Posts

    XML::LibXML::Parser

    April 8, 2026

    XFBURN

    April 8, 2026

    WRAP-AND-SORT

    April 8, 2026

    col2

    April 8, 2026
    Top Posts

    DGST

    March 4, 2026

    FLOCK

    March 18, 2026

    FCNTL

    January 30, 2026

    HIER

    February 2, 2026
    • Home
    • Contact Us
    • Privacy Policy
    • Terms of Use

    Type above and press Enter to search. Press Esc to cancel.