right click context menu displays on wrong screen/desktop

Bug #1514527 reported by Nathan Neulinger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xfce4 Desktop
Confirmed
High
xfdesktop4 (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

I have a 4 monitor setup with Nvidia drivers, each physical screen is separate X screen (:0.0, :0.1, :0.2, :0.3)

Everything working fine except for the context menu when I right click on the background. It is displaying on the last screen in which I clicked the left mouse button in the background/desktop area.

1. Left-click on screen 1
2. Right-click on screen 1
3. Menu displays on screen 1

4. Right-click on screen 2
5. Menu displays on screen 1

6. Left-click on screen 3
7. Right-click on screen 3
8. Menu displays on screen 3

Note - I switch to 15.10 from a Fedora 20 install where this overall config was working with Xfce 4.10.3

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: xfdesktop4 4.12.3-0ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.19.1-0ubuntu4
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Nov 9 11:26:17 2015
InstallationDate: Installed on 2015-11-09 (0 days ago)
InstallationMedia: Ubuntu-Server 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: xfdesktop4
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Grant Edwards (grant-edwards) wrote :

I have an XFCE setup with three X11 displays (:0.0, :0.1, :0.2) and a desktop on each. [Not a single desktop spread across all three displays.]

When I "right click" on the desktop, the desktop menu sometimes pops up on the wrong display. Instead of popping up where I did the "right click", it seems to pop up on the screen on which I most recently did a "left-click". If I always "left-click" on the desktop a couple times before the "right-click", then the menu pops up where it should.

This problem makes xfdesktop difficult to use in a multi-display setup.

Reverting from xfdesktop 4.12 to 4.10 fixes this problem.

Revision history for this message
In , Grant Edwards (grant-edwards) wrote :

More specific version info...

I noticed this bug in 4.12.2 (which is not available as a choice in bugzilla).

The bug is not present in 4.10.2 (I haven't tried 4.10.3, 4.12.1 or 4.12.0)

Revision history for this message
In , Michael Widlok (michalwd1979) wrote :

In my case (4 screens, 2 desktops) pop-up menu is always on first desktop, it is never shown on the second - wherever I clicked before. Everything else as in previous reports. Downgrade to 4.10.2 fixes the problem.

Revision history for this message
Nathan Neulinger (nneul-0) wrote :
Revision history for this message
Nathan Neulinger (nneul-0) wrote :

In case it has any bearing, same behavior with and without compositing enabled.

Revision history for this message
Nathan Neulinger (nneul-0) wrote :

Looks like it's reported upstream:

https://bugzilla.xfce.org/show_bug.cgi?id=12076

Revision history for this message
In , Nathan Neulinger (nneul-0) wrote :

Seeing this on Ubuntu 15.10 with 4.12.3 as well. Had working config with 4.10.3 on Fedora 20 though.

Had filed an Ubuntu bug before I saw this one:

https://bugs.launchpad.net/ubuntu/+source/xfdesktop4/+bug/1514527

Changed in xfdesktop:
importance: Unknown → High
status: Unknown → Confirmed
Revision history for this message
In , Nathan Neulinger (nneul-0) wrote :

Interesting, in my case, reverting just xfdesktop to 4.10 from ubuntu 14.04 does NOT fix the issue.

Grant, did you downgrade all of xfce, or just xfdesktop?

Revision history for this message
In , Grant Edwards (grant-edwards) wrote :

IIRC, I first tried downgrading just the desktop. But,q because of
library dependancies ended up downgrading 1-2 other things.

Here's what I'm current runing on Gentoo:

x11-themes/gtk-engines-xfce-3.2.0-r200
x11-themes/xfce-gant-icon-theme-3.9_p6
x11-themes/xfwm4-themes-4.10.0
xfce-base/libxfce4ui-4.12.1-r2
xfce-base/libxfce4util-4.12.1
xfce-base/xfce4-appfinder-4.12.0-r1
xfce-base/xfce4-meta-4.10
xfce-base/xfce4-panel-4.12.0
xfce-base/xfce4-session-4.12.1
xfce-base/xfce4-settings-4.12.0
xfce-base/xfconf-4.12.0-r1
xfce-base/xfdesktop-4.10.2
xfce-base/xfwm4-4.12.3
xfce-extra/xfce4-clipman-plugin-1.2.6
xfce-extra/xfce4-mixer-4.11.0
xfce-extra/xfce4-notifyd-0.2.4

Revision history for this message
In , Nathan Neulinger (nneul-0) wrote :

Just did some further testing that may help track this down. Reason downgrading on ubuntu didn't help is that I wasn't paying close attention and downgraded to 4.11, and not 4.10 since 4.10 wasn't in the package repository.

What this indicates to me is that the problem was introduced between 4.10.x and 4.11.6.

Now that I can reproduce the fix, I'll take a look and see if I can bisect for you. (Assuming I can get xfdesktop built.)

Revision history for this message
In , Nathan Neulinger (nneul-0) wrote :

Here's when it broke:

commit c102646246a09f93431c37499b40f9e49ae1b783
Author: Eric Koegel <email address hidden>
Date: Tue Oct 8 14:56:35 2013 +0300

    Right click issues persist (Bug 9323)

    This patch uses the gtk_grab_add/remove functions to handle grabs
    prior to a menu popup. Additionally, the menu will pop up on the
    button press event if there's no conflict (i.e. right click DND).

Trying to see if I can figure out the specific problem, but if someone familiar with this code could

Revision history for this message
In , Nathan Neulinger (nneul-0) wrote :

My guess on this is that the underlying problem is the change from

- if(gtk_widget_has_screen(GTK_WIDGET(desktop)))
- screen = gtk_widget_get_screen(GTK_WIDGET(desktop));
- else
- screen = gdk_display_get_default_screen(gdk_display_get_default());

to just using the gtk_grab functions. That altered code likely isn't tolerating a different display for the widget...

Revision history for this message
Nathan Neulinger (nneul-0) wrote :

Tracked down to original commit that introduced the change in behavior:

commit c102646246a09f93431c37499b40f9e49ae1b783
Author: Eric Koegel <email address hidden>
Date: Tue Oct 8 14:56:35 2013 +0300

    Right click issues persist (Bug 9323)

    This patch uses the gtk_grab_add/remove functions to handle grabs
    prior to a menu popup. Additionally, the menu will pop up on the
    button press event if there's no conflict (i.e. right click DND).

Revision history for this message
Nathan Neulinger (nneul-0) wrote :
Revision history for this message
Nathan Neulinger (nneul-0) wrote :

Quick hack for anyone who is impacted by this

ln -s libxfce4util.so.7 /usr/lib/x86_64-linux-gnu/libxfce4util.so.4
copy the attached 'xfdesktop' binary from xfdesktop4_4.8.3-2ubuntu7_amd64.deb to /usr/bin

Yes, I know that's horrible/ghastly, but it'll solve the problem for the moment until the bug is fixed.

Revision history for this message
In , Nathan Neulinger (nneul-0) wrote :

Is anyone looking at this issue?

Revision history for this message
Nathan Neulinger (nneul-0) wrote :

This is still broken on 16.04.

Sean Davis (bluesabre)
Changed in xfdesktop4 (Ubuntu):
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.