! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[xfce] Firefox raises and focuses with Right Mouse Button (RMB) when raise on...
Status:
RESOLVED: INVALID

Comments

Description charlie-tca 2010-03-21 22:10:34 CET
On Xubuntu 9.10, I turned raise on click to off. This works as expected with most applications _except_ when I right-mouse-click on an unfocused FF window. In that case, FF pops to front.

Reproduce:
1. Install Xubuntu 9.10
2. In my X session, I go to panel's Applications menu-->Settings-->Window Manager
3. Choose the "Focus" tab.
4. Turn off "Raise on click" (uncheck it)
5. Open a Firefox window.
6. Open Thunar or Terminal or Mousepad or Gnumeric (etc.) and make it a smaller window that is on top of or in front of FF.
7. Give the smaller app the focus and make in front.
8. RMB click on FF.
BUG: Firefox window is given focus _and_ is raised to front.
Expected: No window focus should occur. No bring to front should occur.

--- additional information ---

* I only experience this problem when right-clicking FF when _another_ app initially has the focus.
* The bug does _not_ occur when right-clicking a non-FF window if FF initially has the focus.
* The bug does _not_ occur when right-clicking a _different_ FF window that is below. (That is, the RMB context menu pops up in the correct place and no window focus changes and no window raises occur.)

Using:
  xfwm4 4.6.1-1
  Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5

ProblemType: Bug
Architecture: amd64
Date: Thu Nov 12 17:48:49 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Xubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: firefox-3.5 3.5.5+nobinonly-0ubuntu0.9.10.1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: firefox-3.5
Uname: Linux 2.6.31-14-generic x86_64

Additional Information from the reporter:

the bug shows up without actually performing any actions in firefox, other than simply a single right-click (not even choosing from the context menu).

Other applications (e.g. terminal, Evince) do NOT gain focus when right-clicked, the do NOT get brought to front. If they have a right-click context menu, the menu IS drawn, however. This would be my expected behaviour, I think.

I am using default xfce window manager, compiz/compositing is turned off. Raise on click is turned off.
Running Xubuntu, 9.10, Karmic, 64-bit.
Linux machname 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:02:26 UTC 2010 x86_64 GNU/Linux
xubuntu-desktop 2.99
xfwm4 4.6.1-1

Appearance:
 - Style: Xfce-saltlake
 - Icons: Elementary Xubuntu
Window Manager:
 - Theme: Totem
 + Focus:
   - Focus model: Click to focus
   - New window focus: Either (Automatically give new window focus or not)
   - Raise on focus: NOT raise on focus
   - Raise on click: NOT raise on click
Comment 1 Olivier Fourdan editbugs 2010-03-22 07:44:55 CET
That's firefox, not the window manager (you say it yourself, it works with all apps but firefox).

Firefox focuses its own window and raises it by itself, the focus stealing prevention is defeated because the events and last user time are from the window itself, so I do not think there is much that can be done on the window manager side.
Comment 2 Micah Gersten 2010-07-21 04:22:48 CEST
I get this with xfwm 4.6.1-1ubuntu2 on any program.  Have focus in one app, right click in another, and it shows the context menu.  I have the Raise on Click option unchecked.
Comment 3 Olivier Fourdan editbugs 2010-07-21 07:35:00 CEST
(In reply to comment #2)
> I get this with xfwm 4.6.1-1ubuntu2 on any program.  Have focus in one app,
> right click in another, and it shows the context menu.  I have the Raise on
> Click option unchecked.

Showing the context menu is expected and application dependent, the question is does it raise the window as well?
Comment 4 Micah Gersten 2010-07-21 07:47:58 CEST
(In reply to comment #3)
> (In reply to comment #2)
> > I get this with xfwm 4.6.1-1ubuntu2 on any program.  Have focus in one app,
> > right click in another, and it shows the context menu.  I have the Raise on
> > Click option unchecked.
> 
> Showing the context menu is expected and application dependent, the question is
> does it raise the window as well?

Yes, I put Firefox on top of Pidgin with the focus on Firefox, right click in Pidgin, and now Pidgin is on top.
Comment 5 Olivier Fourdan editbugs 2010-07-21 08:06:07 CEST
And you have "Raise windows when any button is pressed" unchecked in the the Accessibility tab of the window manager tweaks dialog?

Can you please provide the output of "xfconf-query -c xfwm4 -lv"?
Comment 6 Micah Gersten 2010-07-21 08:14:55 CEST
Created attachment 3041 
xfconf-query -c xfwm4 -lv output

(In reply to comment #5)
> And you have "Raise windows when any button is pressed" unchecked in the the
> Accessibility tab of the window manager tweaks dialog?
> 
> Can you please provide the output of "xfconf-query -c xfwm4 -lv"?

I actually didn't so I unchecked it, and now it doesn't raise (neither does Firefox), but it does receive focus.
Comment 7 Olivier Fourdan editbugs 2010-07-21 08:19:22 CEST
(In reply to comment #6)
> Created an attachment (id=3041) [details]
> xfconf-query -c xfwm4 -lv output
> 
> (In reply to comment #5)
> > And you have "Raise windows when any button is pressed" unchecked in the the
> > Accessibility tab of the window manager tweaks dialog?
> > 
> > Can you please provide the output of "xfconf-query -c xfwm4 -lv"?
> 
> I actually didn't so I unchecked it, and now it doesn't raise (neither does
> Firefox), but it does receive focus.

With any app? 

Firefox and TB will claim focus, other apps don't.
Comment 8 Micah Gersten 2010-07-21 16:02:15 CEST
(In reply to comment #7)
> (In reply to comment #6)
> > Created an attachment (id=3041) [details] [details]
> > xfconf-query -c xfwm4 -lv output
> > 
> > (In reply to comment #5)
> > > And you have "Raise windows when any button is pressed" unchecked in the the
> > > Accessibility tab of the window manager tweaks dialog?
> > > 
> > > Can you please provide the output of "xfconf-query -c xfwm4 -lv"?
> > 
> > I actually didn't so I unchecked it, and now it doesn't raise (neither does
> > Firefox), but it does receive focus.
> 
> With any app? 
> 
> Firefox and TB will claim focus, other apps don't.

Pidgin also claimed focus.  I tested with Firefox and Pidgin.

Bug #6335

Reported by:
charlie-tca
Reported on: 2010-03-21
Last modified on: 2020-05-21

People

Assignee:
Olivier Fourdan
CC List:
3 users

Version

Attachments

xfconf-query -c xfwm4 -lv output (3.01 KB, application/octet-stream)
2010-07-21 08:14 CEST , Micah Gersten
no flags

Additional information