! 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 !
Right-click menu immediately chooses an option on certain themes
Status:
RESOLVED: INVALID

Comments

Description Jimi Bove 2017-06-30 00:41:25 CEST
Running Arch Linux, currently on Thunar 1.6.11, but I also had this issue on 1.6.10. I'm not sure if it existed before then, because it didn't happen until I switched my theme to Arc-Dark, and I made that switch while running 1.6.10.

It took me about a year of testing things here and there to finally nail down exactly how to reproduce this. It recently became extremely annoying, because it leads to me accidentally using whatever right-click option is above Properties, which recently became a certain custom action I'd rather not do when the "Create Archive..." option randomly started being above the custom actions instead of below.

Steps to reproduce:
-Use one of certain themes that cause it, including Arc-Dark but not including the XFCE themes or Numix Frost (the only others I've used).
-Close all open Thunar windows (but killing the daemon process is not necessary).
-Open a new Thunar window.
-View the contents specifically in Detailed View, not Icon or List.
-Right-click on a file (specifically a file, not a folder), without holding down the button.
Expected behavior:
-The right-click menu shows up after a split-second delay and waits for you to choose an option. This happens if you're not in Detailed View.
Actual behavior:
-The right-click menu shows up immediately (no delay) for a split-second and immediately chooses whatever option was under the cursor, as if you had held down the button, even if you had depressed and released it as quickly as a milisecond. This will always happen the first time you use a right-click menu in a Thunar window, rarely the second time, and never any subsequent times. Otherwise, it exhibits the expected behavior.

The behavior of this bug is almost identical to a completely different bug that was caused by the gtk-menu-popup-delay option in certain themes, but since that option is now deprecated, and changing it myself to any value at all didn't change this bug's behavior, I'm sure it's not the cause this time. When I Googled this behavior, I found many discussions about that other bug, but the only one I found that might be this bug is at https://forums.linuxmint.com/viewtopic.php?t=92719

I couldn't figure out exactly why Arc-Dark is causing this, because I'm not an expert in GTK theming and couldn't spot any options in Arc-Dark's files that I figured might have anything to do with this.
Comment 1 Jay 2019-01-18 04:21:34 CET
I can confirm this issue though I haven't personally noticed that it's theme-dependent. It may very well be though. In any case it happens with the Adapta theme. 

I have found that if I adjust my mouse's behavior and decrease the double-click time the issue happens less frequently, and if I increase my double-click time it happens more frequently. It only happens in Thunar, and only happens in detailed view. Changing mice doesn't make any difference. It happens around once every 50 right-click actions on average, and as I said can be made to happen more often, up to perhaps once every 10 times, by increasing the mouse's double-click time.

Examples: right-clicking on an archive opens the Extract To right-click menu action. Right-clicking on a folder causes the Create Archive action to launch. It seems to be whatever item on the right-click menu that is just to the immediate right of the mouse cursor that is run.
Comment 2 Jay 2019-01-18 04:22:29 CET
(In reply to Jay from comment #1)
> I can confirm this issue though I haven't personally noticed that it's
> theme-dependent. It may very well be though. In any case it happens with the
> Adapta theme. 
> 
> I have found that if I adjust my mouse's behavior and decrease the
> double-click time the issue happens less frequently, and if I increase my
> double-click time it happens more frequently. It only happens in Thunar, and
> only happens in detailed view. Changing mice doesn't make any difference. It
> happens around once every 50 right-click actions on average, and as I said
> can be made to happen more often, up to perhaps once every 10 times, by
> increasing the mouse's double-click time.
> 
> Examples: right-clicking on an archive opens the Extract To right-click menu
> action. Right-clicking on a folder causes the Create Archive action to
> launch. It seems to be whatever item on the right-click menu that is just to
> the immediate right of the mouse cursor that is run.

I forgot to mention, this is in MX Linux version 18 Continuum.
Comment 3 Jimi Bove 2019-01-18 06:54:43 CET
This bug actually disappeared in Arc-Dark when Thunar finally finished porting to GTK3 (and I remember coming back to mention that in a bug report about it, so that's really weird that that hasn't seemed to have happened here), so I can't easily test it anymore. So I don't think I'll bother with installing Adapta to confirm unless I'm needed enough to do so (like if the developer isn't able to reproduce it or something). For all I know it could even not have the same cause it originally had (assuming you're also on modern Thunar), but seeing as the original already seems to be gone in modern Thunar, I don't mind it now being about this.
Comment 4 alexxcons editbugs 2019-01-18 22:10:38 CET
@Jay
Which version of thunar do you use ? Doe it as well happen for thunar 1.8.x ?

@Jimi Bove
Nice to hear that the problem disappeared for you. Good chance that it was related to theming. ( Alot of theming API changed between gtk2 and gtk3 )
Comment 5 Jay 2019-01-19 04:59:53 CET
@alexxcons
MX Linux 18, which is based on Debian Stable, comes with Thunar 1.6.15. I saw that the milestone for fixing this was Thunar 1.8.0 but I didn't realize 1.8.x was/were released already. Unfortunately now newer versions are available even in the testing repository.

@all
I just had the issue again this morning, once. This was when using the Numix theme (plain Numix, not Numix Frost which isn't available for my distro.)
Comment 6 Jay 2019-01-19 05:13:41 CET
By the way, as long as I'm going to be stuck with Thunar 1.6.15 (GTK2 version) for a while longer, does anyone have a complete list of themes that are known not to cause this issue in Thunar? Perhaps one or more of them are available for my distro. This would be an acceptable work-around until my distro gets updated. Thanks.
Comment 7 alexxcons editbugs 2019-01-19 22:41:20 CET
Ok, so it pretty much looks like this is a theming bug which hopefully will vanish, with the transition to gtk3.

I dont have any complete list, however there are some default themes which are known to work fine with xfce:
- adwaita / adwaita dark
- all xfce-* themes  ( only for gtk2, will not be supported any longer for gtk3 )
- greybird / bluebird / blackbird
Comment 8 Jimi Bove 2019-01-19 23:07:22 CET
Also working fine in my experience the last time Arch Linux had thunar 1.6.x was Numix Frost.
Comment 9 Jay 2019-01-25 04:24:07 CET
FYI I've been using Adwaita for several days and haven't been experiencing this issue any more. That (or else using compact list view instead of detailed view) will have to be my work-around until MX Linux upgrades Thunar, which I'm told won't be until after XFCE 4.14 is released then included in Debian Stable.
Comment 10 alexxcons editbugs 2019-03-08 23:49:41 CET
Sounds good ... though it may take some time till xfce 4.14 made it into debian stable :( .. hope we have a 4.14 alpha soon.

So I will close the bug for now. Feel free to reopen, if it should be required !

Bug #13697

Reported by:
Jimi Bove
Reported on: 2017-06-30
Last modified on: 2019-03-08

People

Assignee:
Xfce Bug Triage
CC List:
5 users

Version

Version:
unspecified

Attachments

Additional information