diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-05-27 17:52:45 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-05-27 17:52:45 +0200 |
commit | 283524e074d09bd626a049fe9f8e7ea02d002dbc (patch) | |
tree | 708c8e6c01a56c4e2f405f5e3e375cf139d001c1 /src/xembed.hh | |
parent | 77d8a7bef39cc0ec3d20dad6d877cc2d7c67ae41 (diff) |
more xembed work
* Create Xembed windows directly as child windows instead of
reparenting them to avoid races with reparenting WMs.
* Set _XEMBED_INFO property as required by XEMBED.
* Send XEMBED_REQUEST_FOCUS to get focus when user clicks
on the dillo window.
Diffstat (limited to 'src/xembed.hh')
-rw-r--r-- | src/xembed.hh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/xembed.hh b/src/xembed.hh index 72fbf887..0bb5e790 100644 --- a/src/xembed.hh +++ b/src/xembed.hh @@ -6,9 +6,17 @@ #include "d_size.h" class Xembed : public fltk::Window { + uint32_t xid; + void create_internal(uint32_t parent); + void setXembedInfo(unsigned long flags); + void sendXembedEvent(uint32_t message); + public: - Xembed(int _w, int _h) : fltk::Window(_w, _h) {}; - void embed(uint32_t xid); + Xembed(uint32_t xid, int _w, int _h) : fltk::Window(_w, _h) { + this->xid = xid; + }; + void create(); + int handle(int event); }; #endif |