From: Shawn B. <sa...@vc...> - 2007-01-22 04:30:13
|
Hello, I decided to get new-clx working stumpwm. Find the patch attached. After some preliminary testing it looks like stumpwm works with the patched new-clx. Here's a summary of the patch: * ungrab-pointer and ungrab-keyboard crashed because of a call to skipSTACK (arguments were already popped off the stack). fixed. * export set-selection-owner and correct argument order * :EVENT-WINDOW is sometimes just a synonym for :WINDOW, sometimes not. This patch correctly maps :EVENT-WINDOW to the corresponding XEvent slot. * add :OVERRIDE-REDIRECT-P to :REPARENT-NOTIFY event * implement :CLIENT-MESSAGE event. * pop event_key off stack in encode_event to fix crash bug. * set the event type in encode_event * travel_queque peeked the event and called the event handler which meant calling process-events inside that event handler got the same event (this doesn't happen in mit-clx or portable-clx). So travel_queque now just calls XNextEvent. * Implement the error conditions. I just copied the define-conditions from mit-clx. xlib_error_handler now passes :ASYNCHRONOUS to the clx error handler. * Implement mapping-notify -Shawn |