Merge lp:~andrea.corbellini/terminator/bring-to-front into lp:terminator/trunk
Status: | Merged |
---|---|
Merge reported by: | Chris Jones |
Merged at revision: | not available |
Proposed branch: | lp:~andrea.corbellini/terminator/bring-to-front |
Merge into: | lp:terminator/trunk |
Diff against target: |
16 lines (+4/-2) 1 file modified
terminatorlib/window.py (+4/-2) |
To merge this branch: | bzr merge lp:~andrea.corbellini/terminator/bring-to-front |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Jones | Pending | ||
Review via email: mp+128994@code.launchpad.net |
Description of the change
How to reproduce the problem:
1. enable the dbus server;
2. open a terminator instance;
3. open a new application (e.g. firefox) and ensure it has focus;
4. launch terminator again.
What should happen:
A new terminator window should be created above firefox.
What happens:
A new terminator window is created, but is below firefox.
Why this happens:
Because window.present() is called after window.show(). When called after show(), present() has the effect of bringing the window in front of the windows of the same applications. Instead, if present() is called before show(), the window will be brought above all windows, including the windows that belong to other applications.
Note: this happens with Unity. Other window managers may behave differently and might not need this patch, however it doesn't hurt them.