[Pkg-xfce-devel] Bug#631114: Bug#631114: mousepad: freezes for a while on "enter" key press

Yves-Alexis Perez corsac at debian.org
Wed Oct 12 15:14:35 UTC 2011


On mer., 2011-10-12 at 19:03 +0400, Ibragimov Rinat wrote:
> Haven't figured out why the following patch should fix my problem,
> but it fixes. By the way it's mistyping and should be fixed anyway.
> 
> 
> diff -ur mousepad-0.2.16.orig/src/keyevent.c mousepad-0.2.16/src/keyevent.c
> --- mousepad-0.2.16.orig/src/keyevent.c	2008-06-28 00:01:33.000000000 +0400
> +++ mousepad-0.2.16/src/keyevent.c	2011-10-12 18:55:45.743929001 +0400
> @@ -89,8 +89,8 @@
>  	case GDK_Return:
>  		if (check_preedit(text_view))
>  			return FALSE;
> -		if ((indent_get_state() && !(event->state &= GDK_SHIFT_MASK)) ||
> -			(!indent_get_state() && (event->state &= GDK_SHIFT_MASK))) {
> +		if ((indent_get_state() && !(event->state & GDK_SHIFT_MASK)) ||
> +			(!indent_get_state() && (event->state & GDK_SHIFT_MASK))) {
>  			indent_real(text_view);
>  			return TRUE;
>  		}

How exactly did you cook this?
-- 
Yves-Alexis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20111012/d4962fca/attachment.pgp>


More information about the Pkg-xfce-devel mailing list