epakai / synergy-debian

Synergy packaging for Debian
Other
4 stars 2 forks source link

[638358] synergys causes hover/focus issues with gnome-panel #61

Open epakai opened 7 years ago

epakai commented 7 years ago

BTS_msg_id: 20110818200921.13943.28006.reportbug@phonon BTS author: Andres Cimmarusti acimmarusti@gmail.com

Package: synergy Version: 1.3.1-5 Severity: normal

On the server, I get this annoying behavior that when I click on a minimized tile on the gnome-panel nothing happens. I have to move mouse and bring it back to the tile and click to make it work. Using a right click followed by left click seems to work also (Note: I have select windows when mouse moves over them activated).

This problem has been documented in many places, and as far as I've seen has not general solution:

https://bugs.launchpad.net/ubuntu/+source/synergy/+bug/486922 http://synergy-foss.org/pm/issues/335 http://synergy-foss.org/pm/issues/320

The most helpful link is the Ubuntu launchpad bug, especially these comments:

https://bugs.launchpad.net/ubuntu/+source/synergy/+bug/486922/comments/16 https://bugs.launchpad.net/ubuntu/+source/synergy/+bug/486922/comments/21

The conclusion seems to be that gtk+ needs to be rebuilt using the patch attached to comment #21. Though only one user has reported back with success, but a price...

-- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (1000, 'stable'), (500, 'stable-updates') Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash

Versions of packages synergy depends on: ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libgcc1 1:4.4.5-8 GCC support library ii libice6 2:1.0.6-2 X11 Inter-Client Exchange library ii libsm6 2:1.1.1-1 X11 Session Management library ii libstdc++6 4.4.5-8 The GNU Standard C++ Library v3 ii libx11-6 2:1.3.3-4 X11 client-side library ii libxext6 2:1.1.2-1 X11 miscellaneous extension librar ii libxinerama1 2:1.1-3 X11 Xinerama extension library ii libxtst6 2:1.1.0-3 X11 Testing -- Record extension li

synergy recommends no packages.

synergy suggests no packages.

-- no debconf information

epakai commented 7 years ago

BTS_msg_id: 4E526EE6.6040204@debian.org BTS author: Jeff Licquia licquia@debian.org

On 08/18/2011 04:09 PM, Andres Cimmarusti wrote:

The conclusion seems to be that gtk+ needs to be rebuilt using the patch attached to comment #21. Though only one user has reported back with success, but a price...

The patch makes me nervous; passing on GDK_NATIVE_WINDOWS looks to me (from my admittedly non-expert reading) to potentially break a number of other things. Supposedly, Flash support in Web browsers relies on non-native windows, among other things.

There's an alternative way to get GDK_NATIVE_WINDOWS set on just the panel. Move /usr/bin/gnome-panel to /usr/bin/gnome-panel.bin and create the following shell script as /usr/bin/gnome-panel:


!/bin/sh

GDK_NATIVE_WINDOWS=1 export GDK_NATIVE_WINDOWS

exec /usr/bin/gnome-panel.bin

It's a hack (and will be undone next time gnome-panel updates, and leave the gnome-panel.bin file behind as cruft), but if you do that and gnome-panel works properly under synergy, then we've confirmed that setting native windows on just the panel will fix the problem.

Once we've figured that out, we can see if the gnome-panel folks in Debian are willing to accept a more permanent fix, or if anyone with Synergy upstream has an idea what might be going on.

epakai commented 7 years ago

BTS_msg_id: CAH=dYrGGTxxvthAECs39XpcUGkRXMT9A=iZn_4N4UJE9PdRG3A@mail.gmail.com BTS author: Andres Cimmarusti acimmarusti@gmail.com

The patch makes me nervous; passing on GDK_NATIVE_WINDOWS looks to me (from my admittedly non-expert reading) to potentially break a number of other things.  Supposedly, Flash support in Web browsers relies on non-native windows, among other things.

There's an alternative way to get GDK_NATIVE_WINDOWS set on just the panel.  Move /usr/bin/gnome-panel to /usr/bin/gnome-panel.bin and create the following shell script as /usr/bin/gnome-panel:


!/bin/sh

GDK_NATIVE_WINDOWS=1 export GDK_NATIVE_WINDOWS

exec /usr/bin/gnome-panel.bin

It's a hack (and will be undone next time gnome-panel updates, and leave the gnome-panel.bin file behind as cruft), but if you do that and gnome-panel works properly under synergy, then we've confirmed that setting native windows on just the panel will fix the problem.

Once we've figured that out, we can see if the gnome-panel folks in Debian are willing to accept a more permanent fix, or if anyone with Synergy upstream has an idea what might be going on.

Your workaround works like a charm. Today all day I've had no issues. I've also experienced no "collateral damage"

epakai commented 7 years ago

BTS_msg_id: 50030277.8040309@debian.org BTS author: Jeff Licquia licquia@debian.org

forwarded 638358 http://synergy-foss.org/spit/issues/details/290/