From 283524e074d09bd626a049fe9f8e7ea02d002dbc Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 27 May 2009 17:52:45 +0200 Subject: 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. --- src/xembed.hh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/xembed.hh') 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 -- cgit v1.2.3