X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=README.hacking;h=4e5170e450dc45a3552dd41d3bdbc6b81bfbb4c6;hp=28767a5fb7ebe30936a756769f168c73484c01bd;hb=de460e831dc8578acfa8b72251ab9346c99c1f96;hpb=6b1c86cf395f59389e4ece4ea8f4bea2c332745b diff --git a/README.hacking b/README.hacking index 28767a5f..4e5170e4 100644 --- a/README.hacking +++ b/README.hacking @@ -56,9 +56,13 @@ The XScreenSaver API yoursavername_free -- Free everything you've allocated. yoursavername_reshape -- Called when the window is resized. yoursavername_event -- Called when a keyboard or mouse event happens. - The "reshape" and "event" functions are only - called when running in a window (not as a - screen saver). It's ok for them to do nothing. + + The "event" function will only be called when running in a window + (not as a screen saver). The "reshape" event will be called when the + window size changes, or (as a screen saver) when the display size + changes as a result of a RANDR event (e.g., plugging in a new monitor). + + It's ok for both the "event" and "resize" functions to do nothing. - All other functions should be static.