-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mate/marco window focus selection behavior should resemble a stack #647
Comments
https://nest.parrot.sh/packages/debian/marco/blob/debian/1.22.3-1/doc/how-to-get-focus-right.txt this commented source code explains why I am getting this problem, so this bug report is more like a feature request. |
I see this issue with marco-1.24.1-lp152.1.1.x86_64 / libmarco-private2-1.24.1-lp152.1.1.x86_64 on OpenSUSE 15.2 as well. I'm not sure if that is the same problem, but I can also see new windows with focus not getting into the foreground. Reproduce with Okular e.g.: open another file from an existing instance, and the focus returns to the first window, rather than the newly opened one. All that looks to me like regressions compared to 1.20.1 where I was before (OpenSUSE 15.1) and such problems did not occur. |
https://github.com/jothan/mate-window-manager/blob/master/doc/how-to-get-focus-right.txt this web page explains that this is an (unpopular) "feature" and not a bug. after the second windowed program exits you expect (3) the focus to return to the first window. Instead this update on the github website above seems to make So what is "mouse focus" intended to help? Gamers? I have found entire blog postings (sorry no link now) with users the problem is in the marco window manager (under mate desktop). Yes I can see that a lot of thought went into the current design; |
https://bugs.launchpad.net/linuxmint/+bug/1359199 |
If this is a feature, I'm fine with it when it can be controlled somewhere. For me, an essential feature of mate is its conservatism its behavior, or the option to configure that. I'm currently back to 1.20.1 because it became impossible for me to work normally: Some open windows didn't appear in the foreground, rather the one that opened it. Too often, the focus went to the desktop after closing others (and my mouse cursor was almost always over the previously focused windows because most of my windows are maximized and my panel is small). |
I have the similar problem with Marco 1.24.1 on Arch Linux. I am using Double Commander File manager (Qt based version). There is built-in function that allows to view the text file right inside the file manager. After escape the text file viewer focus doesn't back to DC main. So you have to press alt+tab to back to the file manager. This is very annoying. This behavior doesn't observe on my Linux Mint Mate with Marco 1.24.0. |
This problem was reported also here: |
I am either unable to reproduce this properly, or well, it works exactly how you describe in Manjaro.
If I open terminal A, B and C, then tab/focus them in this order BCA, then closing A focuses C, closing C focuses B. |
Try KDE programs as well. I was seeing issues with konsole and okular e.g. |
The same issue exists in Fedora 33. |
Do you guys ever get a situation where no window appears to be focused (after closing some window), but keyboard events definitely go into it? I wonder if it's related. We use Slack at work, and Slack calls have these weird extra windows without frames and what not (which might or might not contribute to the confusion in Marco) — and I think after those close is when the window manager gets a bit disoriented, but I couldn't quite reproduce it yet. I use Konsole as terminal, and that's how I noticed that if a Konsole was on top when the "no window is focused" thing is going on, Konsole would display the empty cursor, as if unfocused (I guess it guesses from whether the window manager tells it that its window is focused), but if I type into it, it'll happily display characters. So yeah, not sure if it's related, but feels like it might be, in the general scope of handling window stacks properly. |
Expected behaviour
Actual behaviour
Steps to reproduce the behaviourMATE general versionPackage version
Linux Distributionfedora 33 Link to bugreport of your Distribution (requirement) |
I see on this project main page the following: Change focus mode:
Could you please add one more option: Kind regards, |
Upgraded to Debian 11 and this behaviour stops the auto-type feature of KeepassXC from working, amongst many other things, if your workflow involves hotkeys or a lot of keyboard. An option for old school behaviour would be very nice. |
Wait, what? i was searching for the bug but this is a feature? It's annoying, impractical, and it's not the behaviour it had for, how many years? and no option to change it back either. jesus |
For me it only happens for qt apps. When I close a qt app the window focused before is not focused automatically. Does it only affect qt (or non-gtk) apps for you as well? |
It's also easily reproducible with two xterm windows gtk windows seem to work fine |
Yes, seems to happen with whatever is not gtk based: qt apps, chromium 🤔, mpv, xterm, st, feh, mupdf, etc, etc, etc. So, gtk apps are in the circle of trust and marco is jack byrnes |
After update Linux Mint from 20.2 Uma to 20.3 Una with Macro 1.26.0 the problem starts observing. |
Is it really not possible to switch back to the old "proper" behaviour? To me the current behaviour feels very broken. |
This is quite strange feature as most of Mate users are using Mate to have old, established behaviour. |
Looking at descrition in a link I don't see explaination of this strange behaviour for a "click" focus method which I use. So, it seem to be a bug. BTW, I use Debian 11 with stock Mate 1.24.1 and Marco as WM. |
Actually, I don't see anything about this being a feature. This clearly says:
I'm using the "click" focus method, like I'm sure ~99,99% other users do because it allows easy keynav with no contradictions, so the rest does not matter. I'm encountering this problem when opening a video file in SMPlayer, and then closing it - either by pressing Esc, or Alt+F4, or clicking the "X" icon. Then I want to return to the Caja window, to press "Delete" to remove this video, then "Down" for the next video, and "Enter" to open it. What actually happens is: after closing SMPlayer, keyboard focus is randomly either on the panel, or on the desktop, or nowhere to be seen. There is absolutely no logical explanation for focus switching randomly to the panel after closing a window that had nothing to do with the panel. So this is definitely a bug, and NOT a "feature". It basically contradicts the documentation. (Unless we're talking about different things and I'm completely missing the point.) EDIT: Tried it with Eye of Mate - it's a part of MATE and not a Qt app, so you can't blame it on Qt.
Seriously, is THIS a feature, or are we missing something?! (This is on Debian 11, marco 1.24.1-3) |
I think by making this "feature" I had enough reasons to move to the tiling window manager. :) |
I have the same issue after Debian 10 -> 11 upgrade and on another machine after Ubuntu 18.04 -> 22.04 upgrade. Start a mate-terminal Start a mate-terminal Start xterm That's really annoying, breaks the flow and is not consistent at all. |
still no workaround? backport?? |
So, how hard is it to, say, install 1.20.1 on a newish sytem running Linux Mint 21 or Ubuntu 22.04? 1.26.0 is definitely broken. 1.20.1 on an older Ubuntu machine I have does not suffer the problems created by this buggy/inconsistent behaviour. Naturally (on Linux Mint 21), this doesn't work because the packages don't include old versions:
nor this:
So do I build it myself? Yuck. I've used MATE (and Marco) for years due to its lightweight classic behaviour, but breaking basic window focus policy and not offering an option for those who want the working logic is... well, insert anti-praise here. This has forced me to Not ideal. |
Come to think of it, Metacity is pretty close to Marco for how they both appear and function (when functioning properly), plus the x11vnc<-->vncviewer problems are not present like when metacity is in use. I lose the compiz eye candy (which I was kinda starting to like :-), but that's a small sacrifice to have a functional window manager. Tentatively, then, buh-bye marco. Nice to knew ya.
P.S.: dconf-editor org.gnome.desktop.wm.keybindings to get all that stuff to match. |
I'll answer my own question; this is on Linux Mint 21, which is Ubuntu based, so pulling Ubuntu packages often works. Found the Ubuntu archive site for Marco 1.20.1 and the relevant package. To wit:
Bob's your uncle. |
I will just use mate-terminal to give a test example to keep it simple with default "click" mode set.
The "click" mode says on window close: Is does not do that now. This IS a bug, not a feature. The fact that you can have keyboard focus and window (title bar color) focus in different states is a problem. I installed marco-1.20.1 per a previous comment and dpkg failed. But it was enough to install /bin/marco. I made a copy of it and reinstalled the current marco version to fix broken packages. Now I can do /usr/local/bin/marco-1.20.1 --replace >& /dev/null &) to switch to the old version easily until this bug is fixed. Or... I can rename it to marco and it will be used by default because /usr/local/bin is in PATH ahead of /bin (seamless, no pain workaround). I hit this bug all the time. I create windows and when they close, I continue typing without re-clicking the prior window. To have those keystrokes randomly go to other windows, the windows that just happen to be under the mouse pointer at the time is TOTALLY RIDICULOUS!!! I hope my observation that the bad state is when no window has focus, i.e. "no_focus_window" is in play, will point to an area in the code to fix. |
yah, my dpkg instructions were incomplete. apologies. I did something similar and ended up with the 1.20.1 /usr/bin/marco binary (of which I kept a copy) installed amidst the rest of the current 1.26.* package stuff. A hack, but it functions. |
Reverting f96255beb fixed the focus issue for me:
It needed the following dependencies to install locally on a fresh ubuntu mate 22.04 vm:
|
… for focusing" This reverts commit f96255b. Fixes mate-desktop#647
… for focusing" This reverts commit f96255b. Fixes mate-desktop#647
@codeparity The focus issue should be significantly improved since 1.26.1, so you could try that instead. Occasionally it still happens for me though, only maybe one out of a few hundred times. |
Im just a very regular Ubuntu user (so I’m obviously only understanding half of what people are writing in this thread. But yeah, exactly what you’re describing drove me crazy on Ubuntu-Mate 22.04 (compared to my 20.04 machines): I open a video file with mpv then close it with pressing „q“ and want to delete the file with „Del“ but my focus isn’t in the window of the folder anymore and I have to click into it first. Now I do wonder if this will be fixed in 24.04. I fell in love with Ubuntu-Mate for it’s „just works“ vibe. I don’t want to spend too much time on configuring things (I already struggle big time with the fact that on Linux I’ll have to look more into hdparm to stop my external WD hard drives from spinning for hours or spinning up/down every hour even when not in use). But I’m not giving up…Linux Desktop experience has come a long way since 2014 when I switched from WindowsXP). |
@github-userx This should be (mostly) fixed in 1.26.1 but 22.04 still seems to ship only 1.26.0: https://manpages.ubuntu.com/manpages/jammy/man1/marco.1.html |
Hm, I use marco 1.26.2 in Arch Linux but still have this issue Guake/guake#1816 |
Message ID: ***@***.***>This is great to know, many thanks! I’m exited for 24.04
|
Expected behaviour
when closing a window A, focus should return (pop off stack) to window that had the focus just before window A got the focus.
in other words, there should be a stack of windows successively having the focus.
this is what normally happens in other operating systems or window managers (compiz works as expected).
Actual behaviour
when window A is closed behavior is unpredictable. Often focus returns to desktop. Behavior varies with programs and
associated windows having the focus.
Steps to reproduce the behaviour
open window B, open window A, close window A, see whether window B still regains focus.
MATE general version
garberw@electron> rpm -qa | grep marco
marco-1.24.1-1.fc32.x86_64
marco-libs-1.24.1-1.fc32.x86_64
garberw@electron>
Package versionmate-desktop-1.24.1-1.fc32.x86_64
Linux Distribution
fedora 32
Link to downstream report of your Distribution
The text was updated successfully, but these errors were encountered: