Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306259 - app-editors/gedit pastes in the wrong place
Summary: app-editors/gedit pastes in the wrong place
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-21 21:47 UTC by Longpoke
Modified: 2010-05-26 12:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Longpoke 2010-02-21 21:47:29 UTC
Every couple minutes, when I'm using gedit, if I paste some text with ctrl+v, it pastes completely away from the cursor, over or below. It even happens when I have some text highlighted that I want to paste over (if that helps). Also, I usually highlight things with ctrl+shift+(left|right), and move to where I want to paste it with ctrl+(left|right), maybe that has something to do with triggering the problem.

I haven't found a way to reproduce it... I don't even know if it's a bug in gedit or X11 or GTK or maybe even something else. I think it seems to be more likely to happen when switching tabs. It happend with gnome/metacity/etc, now I have openbox and slim, and the same thing still happens. Hopefully someone else in the world with the same problem finds this and posts here :)
Comment 1 Longpoke 2010-02-21 21:47:58 UTC
$ emerge --info
Portage 2.1.7.16 (hardened/linux/amd64/10.0, gcc-3.4.6, glibc-2.10.1-r1, 2.6.28-hardened-r9 x86_64)
=================================================================
System uname: Linux-2.6.28-hardened-r9-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5750_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Sun, 21 Feb 2010 01:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       3.4.6-r2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox severe sfperms strict suidctl unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo http://gentoo.arcticnetwork.ca/ http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-nopie"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/tree"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X X509 a52 aac acl acpi alsa amd64 bash-completion berkdb bzip2 cairo caps cjk cli cracklib crypt cups cxx dbus djvu dri dts flac gdbm gpm gtk hal hardened iconv jpeg json justify live mad midi mmx modules mp3 mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl pic png pppd python quicktime readline reflection session smp spl sse sse2 sse3 ssl ssse3 svg sysfs tcpd theora truetype unicode urandom vorbis wma x264 xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NETBEANS_MODULES="ide java mobility profile php cnd nb" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Longpoke 2010-02-22 05:52:40 UTC
Okay, I can reproduce it now. If I middle-click anywhere, then move the text insertion cursor anywhere away from where I middle clicked, and then paste (using ctrl+v OR alternate click -> paste), it will paste at where I middle clicked instead.

Note that it will only happen if my "middle click clipboard" is empty (ie: no text appears when I middle click somewhere).

I just tested, and it happens on my other amd64 system as well, which also has openbox.
Comment 3 Longpoke 2010-02-22 05:53:06 UTC
emerge --info from the other machine:
Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-3.4.6, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_CPU_4400_@_2.00GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 05 Feb 2010 00:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       3.4.6-r2, 4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.lecl.net/pub/gentoo/ http://gentoo.in.th/ http://ftp.daum.net/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://10.0.0.1/gentoo-portage"
USE="X a52 aac acl alsa amd64 berkdb bzip2 cairo cli cracklib crypt cups cxx djvu dri dts flac fortran gdbm gpm gtk iconv ipv6 jpeg live mad mmx modules mp3 mudflap multilib ncurses nls nptl nptlonly opengl openmp pam pcre perl png pppd python quicktime readline reflection session spl sse sse2 sse3 ssl ssse3 svg sysfs tcpd unicode vorbis wma x264 xorg xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Longpoke 2010-02-22 06:09:29 UTC
Actually, I stopped middle clicking, and it's still happening once in a while...
Comment 5 Pacho Ramos gentoo-dev 2010-02-22 19:07:21 UTC
(In reply to comment #4)
> Actually, I stopped middle clicking, and it's still happening once in a
> while...
> 

Sorry but, can you please explain again the problem you are suffering now? I am a bit messed up due middle-clicking stuff and so. If possible, please, list exact steps to reproduce the problem

Thanks a lot and sorry for the inconvenience
Comment 6 Longpoke 2010-02-27 16:52:16 UTC
1. Start a new document
2. Write "hi", highlight it, press ctrl+x
3. Hit enter once to create a second line
4. Leave the text cursor on the second line
5. Middle click the first line
6. Press ctrl+v
7. Notice how it's pasted on the top line instead of the one with the cursor

I haven't been able to reproduce the other case...
Comment 7 Pacho Ramos gentoo-dev 2010-02-27 17:14:44 UTC
(In reply to comment #6)
> 1. Start a new document
> 2. Write "hi", highlight it, press ctrl+x
> 3. Hit enter once to create a second line
> 4. Leave the text cursor on the second line
> 5. Middle click the first line
> 6. Press ctrl+v
> 7. Notice how it's pasted on the top line instead of the one with the cursor
> 
> I haven't been able to reproduce the other case...
> 

Reproduced and reported upstream, thanks a lot for the steps :-)
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-05-26 12:03:11 UTC
closing upstream. Thanks for reporting.