Somehow recently, with with the introduction of 1.4 xorg-server I started to hit a problem that my contents from clipboard get pasted into my active window upon return from the console mode back to X session via Alt+F7. Has anybody observed this? Just select some text by mouse, hit Ctrl+Alt+F1, do something and return back via Alt+F7. It is nasty and I think once I even managed to see my password. I guess it was shown after I have killed xtrlock and returned to X via Alt+F7. Please tell me what details do you need. Portage 2.1.4.1 (default-linux/x86/2007.0/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.23.12 i686) ================================================================= System uname: 2.6.23.12 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Timestamp of tree: Tue, 05 Feb 2008 08:30:06 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 2.1.4 dev-lang/python: 2.3.6-r3, 2.4.4-r8, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en cs cz" PKGDIR="/usr/portage/packages" 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://rsync.gentoo.org/gentoo-portage" USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache2 audacious audiofile bash-completion bcmath berkdb bitmap-fonts blas boost bzip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glitz glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gstreamer gtk gtkhtml hal hdf hdf5 i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jikes jpeg jpeg2k kdtree kerberos lame lapack lcms leim libcaca libedit libwww live lzo lzw mad maildir matroska mhash midi mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp oss pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline real recode reflection reiserfs rpm rtc samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype truetype-fonts type1-fonts unicode urandom usb userlocales uuencode v4l v4l2 vcd vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcb xcf xfs xft xinetd xml xorg xpm xprint xsl xslt xv xvid xvmc yv12 zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
No such issue here...
Before someone asks: $ setxkbmap -print xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete+ledscroll(group_lock)" }; xkb_symbols { include "pc+us+inet(evdev)+group(switch)+group(alt_shift_toggle)" }; xkb_geometry { include "pc(pc104)" }; }; $
Definitely happens here, e.g. I started xterm, then vim, put vim into INSERT mode, Ctrl+Alt+F1. Mostly when I do return via Alt+F7 I get into help mode of vim. I am using your xorg.conf and *.fdi file to have cz_qwerty layout with 1.4.0.90-r3 & hal-0.5.10.
It seems like X sends key events for F1 to clients. I usually end up with a help window opened when returing to X. Output from xev during X->VT1->X switch: ---- KeyPress event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 351999087, (1110,762), root:(1115,787), state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 351999105, (1110,762), root:(1115,787), state 0x18, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False VisibilityNotify event, serial 31, synthetic NO, window 0x4000001, state VisibilityFullyObscured KeyRelease event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 351999646, (1110,762), root:(1115,787), state 0x1c, keycode 67 (keysym 0x1008fe01, XF86_Switch_VT_1), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 351999881, (1110,762), root:(1115,787), state 0x1c, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 351999909, (1110,762), root:(1115,787), state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 352001380, (1110,762), root:(1115,787), state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 352001380, (1110,762), root:(1115,787), state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 352001380, (1110,762), root:(1115,787), state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 352001380, (1110,762), root:(1115,787), state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 352001380, (1110,762), root:(1115,787), state 0x10, keycode 67 (keysym 0xffbe, F1), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x4000001, root 0x64, subw 0x0, time 352001380, (1110,762), root:(1115,787), state 0x10, keycode 67 (keysym 0xffbe, F1), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False ----
(In reply to comment #4) > It seems like X sends key events for F1 to clients. I usually end up with a > help window opened when returing to X. It seems so. While this is related, there is a little bit more going on: > Output from xev during X->VT1->X switch: If you make sure the mouse cursor is over the xev window, you get extra events: [...] KeyRelease event, serial 26, synthetic NO, window 0x1200001, root 0x40, subw 0x0, time 310762, (104,1), root:(142,65), state 0x0, keycode 67 (keysym 0xffbe, F1), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False ButtonRelease event, serial 26, synthetic NO, window 0x1200001, root 0x40, subw 0x0, time 312055, (104,1), root:(142,65), state 0x0, button 1, same_screen YES ButtonRelease event, serial 26, synthetic NO, window 0x1200001, root 0x40, subw 0x0, time 312055, (104,1), root:(142,65), state 0x0, button 2, same_screen YES ButtonRelease event, serial 26, synthetic NO, window 0x1200001, root 0x40, subw 0x0, time 312055, (104,1), root:(142,65), state 0x0, button 3, same_screen YES ButtonRelease event, serial 26, synthetic NO, window 0x1200001, root 0x40, subw 0x0, time 312055, (104,1), root:(142,65), state 0x0, button 4, same_screen YES ButtonRelease event, serial 26, synthetic NO, window 0x1200001, root 0x40, subw 0x0, time 312055, (104,1), root:(142,65), state 0x0, button 5, same_screen YES [...] And these mouse events appear to be the cause of the pasting.
Yes, several ButtonRelese events are past to the window if you let the mouse hover it while swithing. After F1 relese it continues with: ---- VisibilityNotify event, serial 31, synthetic NO, window 0x3400001, state VisibilityUnobscured Expose event, serial 31, synthetic NO, window 0x3400001, (0,0), width 178, height 10, count 3 Expose event, serial 31, synthetic NO, window 0x3400001, (0,10), width 10, height 58, count 2 Expose event, serial 31, synthetic NO, window 0x3400001, (68,10), width 110, height 58, count 1 Expose event, serial 31, synthetic NO, window 0x3400001, (0,68), width 178, height 110, count 0 ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581646, (121,116), root:(126,141), state 0x10, button 3, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581646, (121,116), root:(126,141), state 0x10, button 2, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581646, (121,116), root:(126,141), state 0x10, button 1, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581646, (121,116), root:(126,141), state 0x10, button 4, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581646, (121,116), root:(126,141), state 0x10, button 5, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581646, (121,116), root:(126,141), state 0x10, button 6, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581664, (121,116), root:(126,141), state 0x10, button 3, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581664, (121,116), root:(126,141), state 0x10, button 2, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581664, (121,116), root:(126,141), state 0x10, button 1, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581664, (121,116), root:(126,141), state 0x10, button 4, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581664, (121,116), root:(126,141), state 0x10, button 5, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418581664, (121,116), root:(126,141), state 0x10, button 6, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418582981, (121,116), root:(126,141), state 0x10, button 3, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418582981, (121,116), root:(126,141), state 0x10, button 2, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418582981, (121,116), root:(126,141), state 0x10, button 1, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418582981, (121,116), root:(126,141), state 0x10, button 4, same_screen YES ButtonRelease event, serial 31, synthetic NO, window 0x3400001, root 0x64, subw 0x0, time 418582981, (121,116), root:(126,141), state 0x10, button 5, same_screen YES ---- As pasting is done by pressing the middle button (button 2; usually the mouse wheel) those events can cause pasting in some applications.
I hope this is considered as a serious flaw and can cause security issues. For example, I already saw pasted my password into xterm window, also my $HOME/.signature got pasted with all linebreaks as it is being picked up by Thunderbird which I do use.
Actually, I think this is a bug in the evdev 1.2.0 input driver.
(In reply to comment #8) > Actually, I think this is a bug in the evdev 1.2.0 input driver. I'm seeing this without xf86-input-evdev (any version) installed.
This seems to fix it. =x11-drivers/xf86-input-mouse-1.3.0 ~amd64
You're right, thanks. This was fixed in xf86-input-mouse-1.3.0 by <http://gitweb.freedesktop.org/?p=xorg/driver/xf86-input-mouse.git;a=commitdiff;h=6a03e8bd9699a33dabcdd2bbcf51a001ddfd5534>
No, it is not fixed for me. I have now the followed installed: x11-drivers/xf86-input-evdev-1.2.0 x11-drivers/xf86-input-keyboard-1.3.0 x11-drivers/xf86-input-mouse-1.3.0 x11-base/xorg-server-1.4.0.90-r3 x11-terms/xterm-234 $ emerge --info Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.2.3, glibc-2.7-r2, 2.6.24.3 i686) ================================================================= System uname: 2.6.24.3 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz Timestamp of tree: Thu, 03 Apr 2008 12:04:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.3.6-r4, 2.4.4-r9, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.12 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en cs cz" PKGDIR="/usr/portage/packages" 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://rsync.gentoo.org/gentoo-portage" USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache2 audacious audiofile bash-completion bcmath berkdb blas boost bzip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glitz glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gstreamer gtk gtkhtml hal hdf hdf5 i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jikes jpeg jpeg2k kdtree kerberos lame lapack lcms leim libcaca libedit libwww live lzo lzw mad maildir matroska mhash midi mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp oss pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline real recode reflection reiserfs rpm rtc samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales uuencode v4l v4l2 vcd vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcb xcf xfs xft xinetd xml xorg xpm xprint xsl xslt xv xvid xvmc yv12 zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
OK, I can confirm it does not occur for me with: x11-drivers/xf86-input-evdev-2.1.1 x11-drivers/xf86-input-keyboard-1.3.2 x11-drivers/xf86-input-mouse-1.4.0 x11-base/xorg-server-1.5.3-r1