Page 1 of 1

How to prevent focused window to raise?

Posted: Thu Jan 10, 2013 4:03 am
by anonrate
Is there any way to prevent window which just got focus to raise?
I find it quite annoying.

Thanks,
Anon

AW: How to prevent focused window to raise?

Posted: Thu Jan 10, 2013 4:09 am
by teilnehmer
Hi Anonrate,

there most probably is. Which desktop are you using (XFCE, Mate, Cinnamon)?

I'll have to look it up, but it annoys me as well, so on my system I always change that behavior. If you want to hunt yourself, it should be somewhere in window settings or your desktop's equivalent.

Re: How to prevent focused window to raise?

Posted: Thu Jan 10, 2013 8:43 am
by anonrate
Hi
I use Cinnamon and its Settings tool doesn't offer (under Windows tab) any option for my problem.
It's why I asked here, maybe somebody know a "hack" or so.

Thanks
Anon

Re: How to prevent focused window to raise?

Posted: Thu Jan 10, 2013 9:53 am
by teilnehmer
I don't use Cinnamon myself - you might want to browse this thread:
http://forums.linuxmint.com/viewtopic.php?f=90&t=94195

Here's the part that may make you day:
N31L wrote: I had the same issue with the mouse focus also raising the window to the front no matter what settings I made. It took me an hour to finally find the place where the "auto_focus" setting would actually affect the windowed behaviour in gnome.
I had verified that I had the correct settings (in gconf set auto_raise to false & focus_mode to sloppy) but no matter what I changed these settings to, the behaviour remained the same. I downloaded gnome-tweak-tool and made similar setting in the windows section of that, setting the windows focus mode to sloppy... but again, no change in behaviour. I also tried downloading ccsm (compizconfig settings manager) and setting the options there, but that didn't work either.
Finally, I went into dconf-editor (you can download it with 'sudo apt-get install dconf-tools' if you don't already have the package) and under:
org > gnome > desktop > wm > preferences
I found the same settings as in gconf-editor under Metacity. Here I unselected auto_raise and then changed the focus_mode to sloppy.
These settings actually took, and now the focus moves with the mouse -- without also bringing that window to the forefront.
Hopefully this helps.
Seems like a bit of a hassle for a simple wish, but hey, after that you'll know what the dconf-editor looks like.

Re: How to prevent focused window to raise?

Posted: Thu Jan 10, 2013 1:08 pm
by Orbmiser
Strange as have Cinnamon 14 and sloppy and stacked windows stay in position with focus changing and without moving or bringing them forward. Is that what is being discussed here? Windows being moved to forefront?
Maybe a theme thing? Sorry just guessing here.

Solved: How to prevent focused window to raise?

Posted: Fri Jan 11, 2013 7:36 am
by anonrate
Thanks teilnehmer for the tip.
dconf-editor was the way to go.
Under
org > gnome > desktop > wm > preferences
I had auto-raise _not_ checked and auto-raise-delay 500.

After I set auto-raise-delay = 0, auto-raise stopped.
It looks like a bug.
I've just installed latest Mint/Cinnamon on another laptop
and with the default settings
(auto-raise _not_ checked and auto-raise-delay 500)
it doesn't do auto-raise.

Thanks again,
Anon

AW: How to prevent focused window to raise?

Posted: Sat Jan 19, 2013 10:07 am
by teilnehmer
Glad it worked out! :)