Showing posts with label some. Show all posts
Showing posts with label some. Show all posts
Thursday, March 16, 2017
Fix For Some Apps Starting Behind Focused Windows In Ubuntu Compiz
Fix For Some Apps Starting Behind Focused Windows In Ubuntu Compiz
In Ubuntu (w/ Unity), some applications/windows open behind focused windows which can be annoying in some cases. Here are a few examples:
- clicking the "open containing folder" in the Firefox downloads menu, the file manager pops up behind the focused window;
- activating applications through indicators doesnt always bring them to the foreground, for instance Pidgin chat windows, the file manager opened via the "Open Dropbox folder" Dropbox AppIndicator menu item, Rhythmbox from the Ubuntu Sound Menu, etc.;
- if theres already a fileroller window open (Archive Manager, a compress/extract job, etc.), the second window you open is not focused.
I tested the examples above under Ubuntu 15.10 with Unity.
Some focus-related issues were marked as fixed a while back, but some continue to occur and there are comments, as well as bug reports, which suggest a simple solution which should fix this issue: setting "Focus Prevention level" to "Off" in CompizConfig Settings Manager (obviously you need to be using Compiz for this to work).
In case youre not aware, Ubuntu (with Unity) ships with "Focus Prevention level" set to "Low" by default. For instance, to work around this issue, Ubuntu MATE, which allows you to easily switch to Compiz via MATE Tweak, ships with this option set to "Off".
To apply the fix/workaround I mentioned above, firstly install CompizConfig Settings Manager:
sudo apt-get install compizconfig-settings-managerThen open CompizConfig Settings Manager and under General Options > Focus & Raise Behaviour tab, set "Focus Prevention Level" to "Off":

Thats it! If later on you decide you want to switch back to the default behaviour, simply set the "Focus Prevention Level" back to "Low".
As a bonus, this also fixes the issue with Nemo (with Unity patches) opening in the background when theres a focused window (which I think is a bug in Nemo).
Originally published at WebUpd8: Daily Ubuntu / Linux news and application reviews.
Available link for download
Tuesday, December 20, 2016
Fix Large Black Borders Around Header Bar Apps With Some Themes In Ubuntu 15 10 GTK 3 16
Fix Large Black Borders Around Header Bar Apps With Some Themes In Ubuntu 15 10 GTK 3 16
In Ubuntu 15.10 (which uses GTK 3.16), theres a bug which causes some themes, like Numix, to have large black borders.
This bug only occurs for applications that use header bars (client-side decorations) and it affects Ubuntu (with Unity), while Xubuntu, Ubuntu MATE and Ubuntu GNOME dont seem to be affected (at least in my quick test). Update: MATE with Compiz enabled is also affected so I guess any desktop environment under which you use Compiz is affected (thanks to pawelp!).
Heres a screenshot with GNOME Clocks (an app that uses header bars) under Unity (Ubuntu 15.10), using Numix GTK theme:

Im not sure when/if this bug will be fixed but until then, you can fix it yourself. Below youll find a simple fix which will remove the black borders no matter what GTK theme youre using.
To fix the large black borders bug in Ubuntu, open ~/.config/gtk-3.0/gtk.css (create the ~/.config/gtk-3.0 folder if it doesnt exist) with a text editor (Ill use Gedit below):
mkdir -p ~/.config/gtk-3.0
gedit ~/.config/gtk-3.0/gtk.cssand in this file, add the following:.window-frame {
box-shadow: none;
margin: 1px;
}This forces any theme you use to have a 1 pixel border. You can use any value you want - for instance, use "0" for borderless windows.
Then save the file and close all the applications affected by the black border bug (or you can log out and log back in), then try them again and you shouldnt see large black borders any more.
Heres the same application Ive used above to show the bug (GNOME Clocks, running under Unity), after applying the fix:

Thanks to Phaeilo @ GitHub for the fix!
Originally published at WebUpd8: Daily Ubuntu / Linux news and application reviews.
Available link for download
Subscribe to:
Posts (Atom)