X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fclient.hh;h=d2a41dd7254eb31f35c8ee4bd32fc6ddb6376018;hb=7071b1f094f7b4b5e09ed329d13d2d1454a9cacf;hp=de250f37b051228b0d9e191a67203f45c155306f;hpb=5f78b51429b204f89b654d634bb4cc8cb78b95f6;p=chaz%2Fopenbox diff --git a/src/client.hh b/src/client.hh index de250f37..d2a41dd7 100644 --- a/src/client.hh +++ b/src/client.hh @@ -234,6 +234,8 @@ private: bool _urgent; //! Notify the window when it receives focus? bool _focus_notify; + //! Does the client window have the input focus? + bool _focused; //! The window uses shape extension to be non-rectangular? bool _shaped; @@ -428,13 +430,25 @@ public: @param y The Y component of the new size for the client */ void resize(Corner anchor, int x, int y); + + //! Request the client to close its window. + void close(); + + //! Attempt to focus the client window + bool focus(); + + //! Remove focus from the client window + void unfocus(); + virtual void focusHandler(const XFocusChangeEvent &e); + virtual void unfocusHandler(const XFocusChangeEvent &e); virtual void propertyHandler(const XPropertyEvent &e); virtual void clientMessageHandler(const XClientMessageEvent &e); virtual void shapeHandler(const XShapeEvent &e); virtual void configureRequestHandler(const XConfigureRequestEvent &e); virtual void unmapHandler(const XUnmapEvent &e); virtual void destroyHandler(const XDestroyWindowEvent &e); + virtual void reparentHandler(const XReparentEvent &e); }; }