window_merge icon indicating copy to clipboard operation
window_merge copied to clipboard

CTRL+C stealing

Open pztrn opened this issue 11 years ago • 6 comments

Buddy list steal CTRL+C combination, instead of placing selected text in clipboard a "Join chat" dialog popups.

pztrn avatar Dec 23 '12 20:12 pztrn

I have been unable to reproduce this, including on Pidgin 2.10.7. I have tried on Fedora (GNOME Shell) and Windows 7. It works for me when selecting text both in the input field and in the chat log. (I'm not sure where else you might be selecting text.)

On what platform are you seeing this behavior?

Are you using custom GTK bindings?

Do you see this behavior when all other plugins are disabled?

dm0- avatar Feb 26 '13 23:02 dm0-

I am using Arch Linux, I can reporoduce this with all plugins disabled. Looks like the step is to launch pidgin, close all tabs, unfocus, focus, open a tab - and there will be a "Join chat" dialog on CTRL+C (with selected text or not). Just reproduce it 2 times.

pztrn avatar Feb 27 '13 20:02 pztrn

Okay, thanks for the explanation. With your steps, I was able to reproduce this two or three times on Arch, but still failed to reproduce it a few dozen times. Unless I was doing something subtly different each time, this leads me to believe there is a race condition in the GTK event handling (probably from the band-aid 319a946).

Let me know if you are able to reproduce the issue consistently, otherwise I will try to figure out new ways to handle Pidgin's focus events.

For the record, the following is how I created my Arch environment, in case this turns out to have some influence on reproducing the problem. The ISO on their download page was booted with KVM using the live x86_64 option. I ran these commands to install everything.

pacman --noconfirm -Sy pidgin xf86-video-vesa xorg-server xorg-twm xorg-xinit xterm
pacman --noconfirm -Scc
pacman --noconfirm -S autoconf automake git libtool make pkg-config
pacman --noconfirm -Scc
exec startx

Then, from an xterm:

git clone https://github.com/dm0-/window_merge.git
cd window_merge
mkdir m4
autoreconf -fi
./configure
make install plugindir=$(pkg-config --variable=plugindir pidgin)
pidgin

dm0- avatar Feb 27 '13 23:02 dm0-

This issue doesn't depend on videodriver (intel on my laptop and nvidia on desktop, both have this issue). Right now I've tested following (and able to reproduce):

  • Open Pidgin with plugin enabled. Some tabs opened, like autojoined mucs.
  • Close ALL tabs.
  • Open any tab (with contact or chat).
  • Switch to another program for at least 20-30 seconds (I tried with firefox and skype).
  • Go back and try to CTRL+C. You will get "Join chat" dialog.

Actually, this is also useful on #15.

pztrn avatar Feb 27 '13 23:02 pztrn

Any progress on that?

pztrn avatar May 25 '13 15:05 pztrn

My thoughts: after resuming to pidgin roster pane intercepts focus, despite on cursor blinking in input field.

pztrn avatar May 25 '13 15:05 pztrn