Running i3, keystrokes only go to one of two Pale Moon windows
Moderator: trava90
Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Running i3, keystrokes only go to one of two Pale Moon windows
I posted about this last year but it's happening more often and it's driving me crazy! I'd love to find some kind of fix.
I'm running the i3 window manager. Often, when I open a second Pale Moon window, for instance the Amazon customer support chat window, I get this weird glitch. While the chat window is open, if I focus my original Pale Moon window and start typing, everything I type into goes to the chat window instead of the one that's focused. Even if the two windows are on different workspaces.
It's extremely annoying and it doesn't happen with any other application, only Pale Moon.
I'm running the i3 window manager. Often, when I open a second Pale Moon window, for instance the Amazon customer support chat window, I get this weird glitch. While the chat window is open, if I focus my original Pale Moon window and start typing, everything I type into goes to the chat window instead of the one that's focused. Even if the two windows are on different workspaces.
It's extremely annoying and it doesn't happen with any other application, only Pale Moon.
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Running i3, keystrokes only go to one of two Pale Moon windows
So what makes you think this is a problem in the browser and not in the window manager? (perhaps the window manager has special treatment for "known" browsers?)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Moon Magic practitioner
- Posts: 2194
- Joined: 2018-05-05, 13:29
Re: Running i3, keystrokes only go to one of two Pale Moon windows
Another possibility is that GTK for some reason is not handling the event sent by the window manager properly; or the opposite, i.e. the window manager sends junk events instead of what used to be sent while GTK 2 was still being maintained.
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Running i3, keystrokes only go to one of two Pale Moon windows
I'm open to the possibility that it might be something on the browser side... somehow, but it's extremely unlikely. The browser side simply responds to whatever events are sent to whatever window it is being told by the OS the events are for; I don't think there is any decision logic in that respect on our end.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Running i3, keystrokes only go to one of two Pale Moon windows
Could it be a combination, something about how PM identifies its windows to the WM? I don't know.
Any tips for trying to figure it out? Thanks!
Any tips for trying to figure it out? Thanks!
-
- Moon Magic practitioner
- Posts: 2194
- Joined: 2018-05-05, 13:29
Re: Running i3, keystrokes only go to one of two Pale Moon windows
How do you move focus between windows?
-
- Moon Magic practitioner
- Posts: 2194
- Joined: 2018-05-05, 13:29
Re: Running i3, keystrokes only go to one of two Pale Moon windows
Can you try disabling it and move focus in other ways, e.g. by clicking on the window?
I don't know how many other methods to move focus are available in i3 as I don't use it, but you should try every possible method and see if it works.
I don't know how many other methods to move focus are available in i3 as I don't use it, but you should try every possible method and see if it works.
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Running i3, keystrokes only go to one of two Pale Moon windows
Aha, that's most likely why this happens, then. Unless the WM actually sends a signal to the individual window that focus is changing (as opposed to just raising the window internally for display, and limiting these signals to just different applications), Pale Moon won't see the focus change and will think the focus is still on the first-hovered-over window when application focus changed. That would actually be a bug in the WM in that particular mode, if so. Perhaps the devs of the WM never considered multi-window applications (that are still a single process)?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Running i3, keystrokes only go to one of two Pale Moon windows
Interesting. And clicking the window also wouldn't reset its focus properly? Is there a way I can check which of its windows Pale Moon thinks is focused?
-
- Moon Magic practitioner
- Posts: 2194
- Joined: 2018-05-05, 13:29
Re: Running i3, keystrokes only go to one of two Pale Moon windows
They are two different things.
Well, visually they look the same, but internally they are considered different and that's why this bug happens.
You should contact the i3 developers and reference Moonchild's post.
About checking which window has focus, by design the focused window is the one that receives keyboard events ("design" being the fact that the keyboard is one and can send key presses only to one window at a time.)
Just to clarify, I'm talking about generic graphical applications using the X protocol here, not about Pale Moon in particular.
Re: Running i3, keystrokes only go to one of two Pale Moon windows
To be clear, if I focus the window with the mouse, by clicking it, or by selecting it with the keyboard, the issue is the same.
When I click a button or link in the second Pale Moon window, it responds to the click normally, but if I start typing, the words I type show up in the first Pale Moon window.
When I click a button or link in the second Pale Moon window, it responds to the click normally, but if I start typing, the words I type show up in the first Pale Moon window.
-
- Pale Moon guru
- Posts: 35650
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Running i3, keystrokes only go to one of two Pale Moon windows
That wouldn't be so strange, because you can send clicks to a window that doesn't have focus. It's not like all other windows become non-responsive if they are on screen but not the focused one.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: Running i3, keystrokes only go to one of two Pale Moon windows
Sorry, what are two different things? Mousing over and clicking? They have the same effect in terms of this issue as far as I can tell.