Danny Baumann
2007-Feb-20 01:10 UTC
[compiz] [PATCH] Extended window resize notify function
Hi all, attached is a patch which extends the window resize notify function: Instead of just passing the CompWindow*, additionally the resize difference information is passed (difference of position, width and height). Originally, I wrote this one for Beryl as we needed it for the group plugin, but I think it makes sense that Compiz also has this for the sake of plugin interoperability; especially as the move notify function also does have the dx and dy parameters. Hope that's helpful :-) Regards, Danny -------------- next part -------------- A non-text attachment was scrubbed... Name: resize-notify.diff Type: text/x-patch Size: 5641 bytes Desc: not available Url : http://lists.freedesktop.org/archives/compiz/attachments/20070220/71eba836/resize-notify.bin
David Reveman
2007-Feb-21 10:43 UTC
[compiz] [PATCH] Extended window resize notify function
On Tue, 2007-02-20 at 09:38 +0100, Danny Baumann wrote:> Hi all, > > attached is a patch which extends the window resize notify function: > Instead of just passing the CompWindow*, additionally the resize > difference information is passed (difference of position, width and > height). > Originally, I wrote this one for Beryl as we needed it for the group > plugin, but I think it makes sense that Compiz also has this for the > sake of plugin interoperability; especially as the move notify function > also does have the dx and dy parameters.Yes, that's probably more useful. However, most of the existing notify functions need to be redesigned and I don't think size changes are not best detected with a notify function like this. It probably makes sense to include you're change until we've had time to create something better, though. Thanks, - David