Encapsulation of MapRequest events. More...
#include <event.hh>
Public Attributes | |
const window | parent |
The parent window of the window to be mapped. More... | |
Public Attributes inherited from minxlib::event | |
const int | type |
Event type as specified in X11/X.h. More... | |
const unsigned long | serial |
Last request number processed by X server. More... | |
const bool | send_event |
True if triggered by SendEvent request. More... | |
const window | target |
Event's target window. More... | |
Additional Inherited Members | |
Public Member Functions inherited from minxlib::event | |
virtual | ~event () |
Event object clean-up. More... | |
Static Public Member Functions inherited from minxlib::event | |
static boost::shared_ptr< event > | create (const XEvent &e, Display *d) |
Factory method for creating events. More... | |
static void | pythonize () |
Export event class to minxlib Python module. More... | |
Protected Types inherited from minxlib::event | |
typedef event *(* | cr_func )(const XEvent &, Display *) |
Signature of factory functions for creating events. More... | |
typedef void(* | py_func )() |
Signature of Pythonize functions. More... | |
typedef factory_map< int, cr_func, py_func > | registry |
Registry of subclass object factories and Pythonize functions. More... | |
Protected Member Functions inherited from minxlib::event | |
event (const XEvent &e, Display *d, Window w) | |
Create a wrapper object for an X event. More... | |
Encapsulation of MapRequest events.
We can ask the X server to redirect requests to show windows to Minx so that the window manager can decide what to do. These redirections are delivered via MapRequest events, which are wrapped by minxlib and delivered to Minx's Python core via instances of this class.
const window minxlib::map_request::parent |
The parent window of the window to be mapped.
Since window managers are usually only concerned with top-level windows, we check this field to determine how to handle the map request. If it is equal to the root window of some screen, the target window is a top-level window that may need to be handled in a special way. Non top-level windows will usually have their map requests honoured "as-is."