diff options
| author | Joakim Verona | 2011-08-08 10:41:33 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-08-08 10:41:33 +0200 |
| commit | c5e10d038d040a7bb0eedb64469705ff84addd09 (patch) | |
| tree | fe3213410b1dcbe6401e96b025d74aa42efbd034 /README.xwidget | |
| parent | 1cab149286abf2ec366c764e13c5036a3c6f4204 (diff) | |
| download | emacs-c5e10d038d040a7bb0eedb64469705ff84addd09.tar.gz emacs-c5e10d038d040a7bb0eedb64469705ff84addd09.zip | |
cleanups
Diffstat (limited to 'README.xwidget')
| -rw-r--r-- | README.xwidget | 20 |
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 |
| 896 | Debugger entered--Lisp error: (error "Two bases given in one event") | 896 | Debugger entered--Lisp error: (error "Two bases given in one event") |
| 897 | 897 | ||
| 898 | for some reason hapens sometimes with xwidget events. | 898 | hapens sometimes with xwidget events. appears to be when the |
| 899 | originating xwidget is offscreen so that the event doesn't get caught | ||
| 900 | by the correct emacs event map. | ||
| 899 | 901 | ||
| 900 | maybe I need to set the originating window? | 902 | maybe 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 | ||
| 905 | since its an offscreen xwidget the buffer local keymap isnt the right | ||
| 906 | place for the handler. some global map should be used. | ||
| 907 | |||
| 908 | onscreen widgets don't have the same issue. | ||
| 909 | |||
| 910 | anyway, 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 | |||
| 916 | we need the event handler at some level because we can't call lisp | ||
| 917 | asynchronously. | ||
| 918 | |||
| 903 | *** TODO console messages | 919 | *** TODO console messages |
| 904 | http://webkitgtk.org/reference/webkitgtk-webkitwebview.html#WebKitWebView-console-message | 920 | http://webkitgtk.org/reference/webkitgtk-webkitwebview.html#WebKitWebView-console-message |
| 905 | http://getfirebug.com/wiki/index.php/Console_API#console.count.28.5Btitle.5D.29 | 921 | http://getfirebug.com/wiki/index.php/Console_API#console.count.28.5Btitle.5D.29 |