-- I have been investigating the possibility of making the titledown patch a module (FvwmDecor?), where we could also put all the fancy extensions that have been suggested for titlebars/buttons. But there are a number of problems 1) It would have to be able to get a lot of info from fvwm, mainly WindowFont, Titlestyle, Buttonstyles, bindings to buttons and titlebar and border... 2) Some way of trigging a complex function from the module must be invented. 3) There will be _a lot_ of code duplication from fvwm. Can be somewhat remedied by moving more code into fvwmlib. The most important issue is how the fvwm protocol must be extended to make 1 possible. Currently most modules use the GetConfigLine() fvwmlib function to get their config, this sends all the config lines fvwm has stored that starts with a "*", and also the following three settings: IconPath, PixmapPath, ClickTime. (fvwm assumes these are the only three settings modules should need to know) What if this function could be called with a prefix, and any line starting with that prefix would be returned? Thus you could have GetConfigLine("*FvwmModule",...) to get all the config lines for that module (and not have to go through all the other modules' definitions), and then GetConfigLine("PixmapPath",...) and GetConfigLine("ButtonStyle",...) and any setting you would like your module to know. GetConfigLine() uses the M_CONFIG_INFO request, so the relevant protocol change would be to add a parameter to this and only return matching lines. Of course, to be able to return any config line, fvwm would have to cache the entire config, not only those related to modules. Number 2 should be easy to implement, when a module sends a request for a function, some more effort should be put into creating the fake buttonpress event that is sent to the complexfunction. I tried to do this the same way the Popup modification was done, but a little more insight is obviously needed. Any ideas? Chuck, is this implementable? -- And I still think PixmapPath should be removed completely, leaving only IconPath. -- Vyrdsamt, -Jarl -- Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>. To unsubscribe from the list, send "unsubscribe fvwm" in the body of a message to majordomo_at_hpc.uh.edu. To report problems, send mail to fvwm-owner_at_hpc.uh.edu.Received on Mon Mar 25 1996 - 19:11:39 GMT
This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST