-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Julien Danjou wrote:
> At 1229612705 time_t, Leon Winter wrote:
>> b) patch the C side to check for mouse-over/leave events if
>> menus/widgets hide
>
> b) is the right solution.
>
> How about that:
>
> diff --git a/wibox.c b/wibox.c
> index 9c0f8b5..87e2433 100644
> --- a/wibox.c
> +++ b/wibox.c
> @@ -545,6 +545,7 @@ wibox_setvisible(wibox_t *wibox, bool v)
> if(v != wibox->isvisible)
> {
> wibox->isvisible = v;
> + wibox->mouse_over = NULL;
>
> if(wibox->screen != SCREEN_UNDEF)
> {
> @@ -587,6 +588,8 @@ wibox_detach(wibox_t *wibox)
> /* restore position */
> wibox->isvisible = v;
>
> + wibox->mouse_over = NULL;
> +
> simplewindow_wipe(&wibox->sw);
>
> for(int i = 0; i < globalconf.screens[wibox->screen].wiboxes.len;
> i++)
>
Looks simple, works perfectly: accepted.
Regards,
Leon Winter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEUEARECAAYFAklKciIACgkQ3qn9m9SfDYck3ACdHgIKOPG5+FZ8N9/WbU/DEB8K
xVsAmOcegRjoGWdEOXtWkzntubXSr9k=
=HBus
-----END PGP SIGNATURE-----
--
To unsubscribe, send mail to [email protected].