aboutsummaryrefslogtreecommitdiffstats
path: root/README.xwidget
diff options
context:
space:
mode:
authorJoakim Verona2011-08-08 10:41:33 +0200
committerJoakim Verona2011-08-08 10:41:33 +0200
commitc5e10d038d040a7bb0eedb64469705ff84addd09 (patch)
treefe3213410b1dcbe6401e96b025d74aa42efbd034 /README.xwidget
parent1cab149286abf2ec366c764e13c5036a3c6f4204 (diff)
downloademacs-c5e10d038d040a7bb0eedb64469705ff84addd09.tar.gz
emacs-c5e10d038d040a7bb0eedb64469705ff84addd09.zip
cleanups
Diffstat (limited to 'README.xwidget')
-rw-r--r--README.xwidget20
1 files changed, 18 insertions, 2 deletions
diff --git a/README.xwidget b/README.xwidget
index 710c10ed7f3..3673209664a 100644
--- a/README.xwidget
+++ b/README.xwidget
@@ -895,11 +895,27 @@ because one might need tell set a title and sizes and things when it loads.
895**** TODO event bug 895**** TODO event bug
896Debugger entered--Lisp error: (error "Two bases given in one event") 896Debugger entered--Lisp error: (error "Two bases given in one event")
897 897
898for some reason hapens sometimes with xwidget events. 898hapens sometimes with xwidget events. appears to be when the
899originating xwidget is offscreen so that the event doesn't get caught
900by the correct emacs event map.
899 901
900maybe I need to set the originating window? 902maybe I need to set the originating window in the event structure.
901 event.frame_or_window = Qnil; //frame; //how to get the frame here? //TODO i store it in the xwidget now 903 event.frame_or_window = Qnil; //frame; //how to get the frame here? //TODO i store it in the xwidget now
902 904
905since its an offscreen xwidget the buffer local keymap isnt the right
906place for the handler. some global map should be used.
907
908onscreen widgets don't have the same issue.
909
910anyway, seems it'll turn out like this:
911- xwidget-osr stores a callback and user data
912- the event is an implementation detail only and get caught in the
913 topmost event map
914- the event map calls the callback in the xw with the right args.
915
916we need the event handler at some level because we can't call lisp
917asynchronously.
918
903*** TODO console messages 919*** TODO console messages
904http://webkitgtk.org/reference/webkitgtk-webkitwebview.html#WebKitWebView-console-message 920http://webkitgtk.org/reference/webkitgtk-webkitwebview.html#WebKitWebView-console-message
905http://getfirebug.com/wiki/index.php/Console_API#console.count.28.5Btitle.5D.29 921http://getfirebug.com/wiki/index.php/Console_API#console.count.28.5Btitle.5D.29