Hello community, here is the log from the commit of package x2x checked in at Mon Jul 14 18:36:16 CEST 2008. -------- --- x2x/x2x.changes 2008-01-04 11:04:50.000000000 +0100 +++ x2x/x2x.changes 2008-07-14 14:30:19.743923000 +0200 @@ -1,0 +2,6 @@ +Mon Jul 14 14:29:20 CEST 2008 - werner@suse.de + +- Make mouse buttons work window change mode even if other masks + are active like NumLock. + +------------------------------------------------------------------- New: ---- x2x-1.30-beta-buttonmasks.dif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ x2x.spec ++++++ --- /var/tmp/diff_new_pack.q16116/_old 2008-07-14 18:35:42.000000000 +0200 +++ /var/tmp/diff_new_pack.q16116/_new 2008-07-14 18:35:42.000000000 +0200 @@ -10,6 +10,7 @@ # norootforbuild + Name: x2x Url: http://x2x.dottedmag.net/ %define _prefix %(xft-config --prefix) @@ -21,12 +22,13 @@ Group: System/X11/Utilities AutoReqProv: on Version: 1.30_beta -Release: 138 +Release: 184 Summary: X Window System Display Remote Control #Source: http://gatekeeper.dec.com/pub/DEC/SRC/x2x/x2x-1.27.tar.gz Source: http://freshmeat.net/redir/x2x/11816/url_tgz/x2x-1.30-beta.tar.gz Patch: x2x-1.30-beta.dif Patch1: x2x-1.30-beta-keycodes.dif +Patch2: x2x-1.30-beta-buttonmasks.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -39,6 +41,7 @@ %setup -n x2x-1.30-beta %patch %patch1 +%patch2 %build xmkmf -a @@ -57,37 +60,40 @@ %_mandir/man1/x2x.1x.gz %changelog -* Fri Jan 04 2008 - werner@suse.de +* Mon Jul 14 2008 werner@suse.de +- Make mouse buttons work window change mode even if other masks + are active like NumLock. +* Fri Jan 04 2008 werner@suse.de - Add patch from http://x2x.dottedmag.net/ to repository to avoid mixed up key symbols of the `from' and `to` display (bug #303870 and bug #351545). -* Wed Aug 02 2006 - werner@suse.de +* Wed Aug 02 2006 werner@suse.de - Force both display to be used synchronous - Release not symbols but real keys to avoid problem with e.g. shifted keys and their active symbols - Use a signal handler on SIGINT/SIGTERM to restore keyboard -* Mon Jul 24 2006 - mmarek@suse.de +* Mon Jul 24 2006 mmarek@suse.de - fix filelist for build with modular Xorg -* Thu Mar 16 2006 - werner@suse.de +* Thu Mar 16 2006 werner@suse.de - Let NumLock and CapsLock alive in both directions -* Wed Mar 15 2006 - werner@suse.de +* Wed Mar 15 2006 werner@suse.de - Wake and use slave display even if DPMS was activated - Use RPM_OPT_FLAGS -* Wed Jan 25 2006 - mls@suse.de +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Thu Aug 05 2004 - sndirsch@suse.de +* Thu Aug 05 2004 sndirsch@suse.de - updated to version 1.30-beta -* Sun Jan 11 2004 - adrian@suse.de +* Sun Jan 11 2004 adrian@suse.de - add %%defattr -* Tue Sep 17 2002 - ro@suse.de +* Tue Sep 17 2002 ro@suse.de - removed bogus self-provides -* Mon Jun 11 2001 - pblaha@suse.cz +* Mon Jun 11 2001 pblaha@suse.cz - mv x2x.1 -> x2x.man for build with xmkmf -* Fri Apr 28 2000 - smid@suse.cz +* Fri Apr 28 2000 smid@suse.cz - buildroot added -* Wed Feb 09 2000 - sndirsch@suse.de +* Wed Feb 09 2000 sndirsch@suse.de - changed group tag -* Mon Sep 13 1999 - bs@suse.de +* Mon Sep 13 1999 bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. -* Mon Jul 05 1999 - sndirsch@suse.de +* Mon Jul 05 1999 sndirsch@suse.de - created package ++++++ x2x-1.30-beta-buttonmasks.dif ++++++ --- x2x.c +++ x2x.c 2008-07-14 14:22:38.532838048 +0200 @@ -1710,7 +1710,7 @@ XButtonEvent *pEv; } /* check if more than one button pressed */ - state = pEv->state; + state = pEv->state & (Button1Mask|Button2Mask|Button3Mask|Button4Mask|Button5Mask); switch (pEv->button) { case Button1: state &= ~Button1Mask; break; case Button2: state &= ~Button2Mask; break; @@ -1767,7 +1767,7 @@ XButtonEvent *pEv; if ((pDpyInfo->mode == X2X_AWAIT_RELEASE) || (pDpyInfo->mode == X2X_CONN_RELEASE)) { /* make sure that all buttons are released */ - state = pEv->state; + state = pEv->state & (Button1Mask|Button2Mask|Button3Mask|Button4Mask|Button5Mask); switch (pEv->button) { case Button1: state &= ~Button1Mask; break; case Button2: state &= ~Button2Mask; break; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org