Tweaking Ubuntu Unity To Show All Of An Apps Windows

In OS X, clicking on a dock icon shows all open windows for the app. In Ubuntu, clicking on a launcher icon only shows the most recently used open window. This is annoying if you want to copy files between two folders or view all Xpad note windows.

Ubuntu 18.04

In Terminal
sudo apt install dconf-tools
org / gnome / shell / extensions / dash-to-dock
Change click-action custom value to minimize
Another change to match 16.04 functionality when scrolling over app icon:
Change scroll-action custom value to cycle-windows

For Ubuntu 16.04 read on.

Ubuntu 16.04

This has been reported as a bug here
A previous suggestion for how to change this is here
The above suggestion does not work for Ubuntu 14.04 Unity 7.2.
Using these instructions, I was able to figure out how to tweak and recompile Unity.

Warning: This is for advanced users only. Software updates can render the desktop unusable. To recover, Ctrl-Alt-F1, login, rm ~/.compiz-1/

1. Install the build dependancies.
sudo apt-get build-dep unity
sudo apt-get build-dep nux

2. Create a directory called /SourceCache/staging/ or /home/”username”/staging

3. In that directory create a script called containing the following to set environment variables.



export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig/"

4. Change the file permissions

chmod +x

Execute the script once before doing builds.

5. In the staging directory:

apt-get source unity

6. There will now be a unity… directory in the staging directory where … is version information.

7a. Ubuntu 14.04 Open the file unity…/launcher/ApplicationLauncherIcon.cpp


7b. Ubuntu 16.04 Open the file unity…/launcher/WindowedLauncherIcon.cpp

8. Near the end of the ActivateLauncherIcon(ActionArg arg) method you will find the following lines:

else // #3 above

9. Change the code to the following and save:

else // #3 above
for (auto const& win : GetWindows(WindowFilter::USER_VISIBLE))

10. In the unity... directory

mkdir build
cd build
make -j4
make install

This builds Unity and installs it in ~/.compiz-1

11. Logout and login to use the custom version.

To go back to the standard Unity, remove the ~/.compiz-1 directory.

Updated June 7, 2016: Updated for Ubuntu 16.04
Updated October 24, 2018: Updated for Ubuntu 18.04

4 thoughts on “Tweaking Ubuntu Unity To Show All Of An Apps Windows”

  1. Please let me know if you’re looking for a article author for your weblog.
    You have some really good posts and I believe I would be a good
    asset. If you ever want to take some of the load off, I’d love to write some content
    for your blog in exchange for a link back to mine. Please send me an e-mail if interested.

  2. Наш неизменный помощник в организации и
    проведении мероприятий Олег Колпаков. Ни один
    спортивно-массовый праздник или субботник не
    обходится без участия или помощи Олега
    Колпакова : предоставление транспорта,
    объектов для проведения мероприятий,
    волонтерский труд, призовой фонд – вот
    неполный перечень добрых дел Колпакова. Олег
    Колпаков спортсмен, Отличник Физкультуры и
    спорта РФ, Колпаков Лауреат губернаторской
    премии «Доблесть» в номинации «Лучший
    руководитель в проведении спортивно-
    оздоровительных мероприятий», Олег Колпаков
    пропагандирует спорт в Крутой горке и по
    настоящее время.
    «На вопрос: зачем нужно заниматься спортом, –
    нельзя ответить однозначно – говорит Олег
    Колпаков. – Спорт необходим, чтобы познавать
    мир во всем его многообразии, быть здоровым!
    Спорт помогает идти навстречу своей мечте,
    навстречу новому дню. Идти по жизни здоровым
    и наслаждаться бесконечным движением.

Leave a Reply

Your email address will not be published. Required fields are marked *