[Dx-packages] [Bug 1459671] Re: focus goes to the wrong window after a modal dialog is closed

2015-09-02 Thread Guilherme Quentel Melo
Just to update, I removed the "screen->focusDefaultWindow ();" line and recompiled compiz and I've been using it for more than a month and this solved the problem and I could not observe any side effect. So I think this code could probably be removed at least when using unity. -- You received thi

[Dx-packages] [Bug 1459671] Re: focus goes to the wrong window after a modal dialog is closed

2015-07-23 Thread Guilherme Quentel Melo
I decided to investigate this problem and checked out the source code. After a lot of debugging I found out that the call to focus the wrong window is coming from compiz CompScreenImpl::focusDefaultWindow which comes from this code on compiz event.cpp : else if (event->xfocus.windo

[Dx-packages] [Bug 1459671] Re: focus goes to the wrong window after a modal dialog is closed

2015-07-23 Thread Guilherme Quentel Melo
This is the stacktrace obtained with gdb when the wrong call to focus is made. ** Attachment added: "unity_compiz_gdb.txt" https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1459671/+attachment/4433370/+files/unity_compiz_gdb.txt -- You received this bug notification because you are a memb

[Dx-packages] [Bug 1459671] Re: focus goes to the wrong window after a modal dialog is closed

2015-05-29 Thread Guilherme Quentel Melo
I did some other tests using "Always on Top" feature. 1 - Open Gimp on multi window mode 2 - Open a terminal 3 - Set the terminal as always on top 4 - Go back to Gimp and press Ctrl + O (Open dialog) 5 - Press Esc Now focus goes sometimes to Gimp main window, but keep doing opening and closing th

[Dx-packages] [Bug 1459671] Re: focus goes to the wrong window after a modal dialog is closed

2015-05-29 Thread Guilherme Quentel Melo
I tested with Gimp alone in multi window mode. The problem occurs in Ubuntu, but not on Lubuntu. 1 - Open Gimp on multi window mode 2 - Open any dialog from menu (Open file for example) 3 - Press Esc Expected (happens on Lubuntu): - Focus goes back to the main window (the window with the menu) W

[Dx-packages] [Bug 1459671] Re: focus goes to the wrong window after a modal dialog is closed

2015-05-28 Thread Guilherme Quentel Melo
** Tags added: eclipse gimp -- You received this bug notification because you are a member of DX Packages, which is subscribed to unity in Ubuntu. Matching subscriptions: dx-packages https://bugs.launchpad.net/bugs/1459671 Title: focus goes to the wrong window after a modal dialog is closed S

[Dx-packages] [Bug 1459671] [NEW] focus goes to the wrong window after a modal dialog is closed

2015-05-28 Thread Guilherme Quentel Melo
Public bug reported: Steps to reproduce on Ubuntu 15.04: 1 - Install eclipse with "apt-get install eclipse" 2 - Start eclipse 3 - Create a new project 4 - Create a file in the newly created project 5 - Detach any view (the task view , for example) 6 - Open the created file, or just focus on its e