You are not logged in.
When I selecting some text to copy, it is not highlighted.
until release mouse left button, those highlight region get correct highlight correct.
This is a really confusing issue, because this behavior only happen after start firefox a while.
And this issue will cause click to move feature(e.g. some human verification) never work.
in fact, moving tab position is impossible too for firefox.
This issue happen probably 3~4 months, I keep update linux to newest to try if this issue get fixed.
and, try to disable all my firefox extension, but no luck.
I use Arch + Wayland + Firefox 104.0.1
If need more details, i will post again.
Thank you.
Last edited by zw963 (2022-10-14 18:15:02)
Offline
This does sound like it could be driver or wayland compositor realted .
Is firefox running natively on wayland or in Xwayland ?
https://wiki.archlinux.org/title/Firefox#Wayland
Which compositor are you using ?
What videocard and drivers ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
> Is firefox running natively on wayland or in Xwayland ?
I check the Window Protocol settings in firefox about:support, it value is Xwayland
╰─ $ pacman -Q |grep wayland
lib32-wayland 1.21.0-1
qt5-wayland 5.15.5+kde+r38-3
qt6-wayland 6.3.1-1
wayland 1.21.0-1
wayland-protocols 1.26-1
xorg-xwayland 22.1.3-1
╰─ $ echo $XDG_SESSION_TYPE
wayland> Which compositor are you using ?
╰─ $ inxi -Gxx | grep compositor
compositor: gnome-shell v: 42.4 driver: X: loaded: modesetting> What videocard and drivers ?
I use linux builtin intel video driver with only one intel card.
00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620]
[EDIT]:
I test use firefox with `MOZ_ENABLE_WAYLAND=1`, this issue is gone.
But this not resolve my issue, because i use tools like `wmctrl` with firefox, this not work anymore when switch to wayland.
so, the new issue is, how to fix firefox works with xwayland? (because this issue not happen on google-chrome anyway).
thanks
Last edited by zw963 (2022-09-11 14:01:30)
Offline
> Which compositor are you using ?
╰─ $ inxi -Gxx | grep compositor
compositor: gnome-shell v: 42.4 driver: X: loaded: modesetting
A wayland compositor is similar to what X calls a window manager .
https://wiki.archlinux.org/title/Wayland#Compositors has a list .
I guess your wayland compositor is mutter (default for Gnome ) ?
Do you have xf86-video-intel installed ?
If yes, does it make a difference if you remove it ?
wmctrl most recent release was in 2005, before wayland development was started.
Does the issue go away if you disable wmctrl ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
> Which compositor are you using ?
╰─ $ inxi -Gxx | grep compositor
compositor: gnome-shell v: 42.4 driver: X: loaded: modesettingA wayland compositor is similar to what X calls a window manager .
https://wiki.archlinux.org/title/Wayland#Compositors has a list .I guess your wayland compositor is mutter (default for Gnome ) ?
Do you have xf86-video-intel installed ?
If yes, does it make a difference if you remove it ?wmctrl most recent release was in 2005, before wayland development was started.
Does the issue go away if you disable wmctrl ?
I guess your wayland compositor is mutter (default for Gnome ) ?
Yes
Do you have xf86-video-intel installed ?
No, I try install it then switch to xwayland again, same issue happen again after use firefox a while.
wmctrl most recent release was in 2005, before wayland development was started.
Does the issue go away if you disable wmctrl
This issue not relative to wmctrl, in fact, i just use wmctrl to find a window in several bash script.
The really issue is, when i add ENV to use firefox with wayland mode, most of my daily use tools
not work with firefox anymore, e.g. flameshot, copyQ etc, When i pressing same hotkey try to active
those tools in firefox, not happen.
that is a little accept anyway.
Any idea?
Thank you
Offline
That could be due to the individual apps (flameshot f.e. needs some packages to work with wayland that are not needed under X) but could also have to do with the shortcuts or whatever manages them.'
What are you using to manage the shortcuts ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
That could be due to the individual apps (flameshot f.e. needs some packages to work with wayland that are not needed under X) but could also have to do with the shortcuts or whatever manages them.'
What are you using to manage the shortcuts ?
Some hotkey use xbindkeys (~/.xbindkeysrc), sure it should not work with wayland + firefox, right?
But, CopyQ set global hotkey use itself config, it not work too.
After switch back to xwayland, both of them, and `wmctrl`(i use it to switch between konsole + firefox use a keybinding which write use BASH).
thank you.
Offline
It appears global shortcutkeys are not supported under wayland because of security issues .
https://github.com/albertlauncher/albert/issues/309 is interesting .
wayland compositors have enough access to implement global shortcuts, but there's no standard.
If you setup shortcuts in gnome-wayland they won't work in kde-wayland or sway and vv .
https://unix.stackexchange.com/question … th-wayland mentions some workarounds.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
It appears global shortcutkeys are not supported under wayland because of security issues .
https://github.com/albertlauncher/albert/issues/309 is interesting .wayland compositors have enough access to implement global shortcuts, but there's no standard.
If you setup shortcuts in gnome-wayland they won't work in kde-wayland or sway and vv .https://unix.stackexchange.com/question … th-wayland mentions some workarounds.
Yeah. the shortcutkeys works on xwayland anyway. the really issue is, the selection highlight issue when use xwayland(will disappear if use wayland), so, where is the source of this issue?
the gnome upstream? or Arch?
Offline
I'd suggest approaching the issue from the other side: get rid of xwayland and adjust your scripts to run on wayland. What exactly is wmctrl used for? You said for listing windows - just firefox windows? If so, you can do that directly through firefox's remote protocol / CDP which can also activate a given window, open new firefox windows / tabs, etc.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'd suggest approaching the issue from the other side: get rid of xwayland and adjust your scripts to run on wayland. What exactly is wmctrl used for? You said for listing windows - just firefox windows? If so, you can do that directly through firefox's remote protocol / CDP which can also activate a given window, open new firefox windows / tabs, etc.
As CopyQ and flameshot not work with Wayland mode + Firefox, the wmctrl is just one of my concerns.
I use wmctrl like this:
1. get the list of all opened X windows.
╰─ $ 1 wmctrl -l
╰─ $ wmctrl -lx
0x00e00007 0 konsole.konsole lggram /home/zw963/Crystal/crystal-lang/crystal — Konsole
0x02200142 0 emacs.Emacs lggram *Article* - Emacs 28.2.50
0x0120003e 0 Navigator.firefox lggram Post a reply / Arch Linux Forums — Mozilla Firefox
0x01400006 0 okular.okular lggram Go语言圣经 — Okular
0x02600003 0 Opera.Opera lggram ftp://ftp.ensembl.org/pub/release-67/fasta/homo_sapiens/dna/Homo_sapiens.GRCh37.67.dna_rm.chromosome.Y.fa.gz - Google Search - Opera2. I use a bash script to active specified window.
╰─ $ wmctrl
wmctrl 1.07
Usage: wmctrl [OPTION]...
...
-a <WIN> Activate the window by switching to its desktop and
raising it.If i start firefox with Wayland mode, I can't see following line in out of `wmctrl -l`
0x0120003e 0 Navigator.firefox lggram Post a reply / Arch Linux Forums — Mozilla FirefoxAny thought?
Offline
As CopyQ and flameshot not work with Wayland mode + Firefox, the wmctrl is just one of my concerns.
I only asked about wmctrl as the other two are trivial to replace as there are multiple drop in replacements avaialable for those that run on wayland. But if you want to stick with all X11 tools and programs running on Xwayland, why are you running wayland in the first place?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
zw963 wrote:As CopyQ and flameshot not work with Wayland mode + Firefox, the wmctrl is just one of my concerns.
I only asked about wmctrl as the other two are trivial to replace as there are multiple drop in replacements avaialable for those that run on wayland. But if you want to stick with all X11 tools and programs running on Xwayland, why are you running wayland in the first place?
the other two are trivial to replace as there are multiple drop in replacements avaialable for those that run on wayland
I don't know there is any well used alternative for CopyQ and Flameshot which support global hotkey on wayland.
But, i thought this is really not the key, the problem is:
1. Why Firefox selection on region feature not work well with Xwayland? (I never seen this problem on other apps)
2. i use Firefox on GNOME + Wayland(use Xwayland) on Arch for a long time(2 years), but, I only notice this issue recent months.
So, where is the issue come from? i consider we need find it out and report to upstream?
Offline
Hi, thanks all, I finally workaround this issue, with ... switch to use wayland mode for firefox.
i rework my old (wmctrl) scripts use gnome shell extension, check https://bbs.archlinux.org/viewtopic.php?id=280458
Offline