Bug 434746 - Alt+Tab is not usable in Gnome while Eclipse startup (workspace choose and splash)
Summary: Alt+Tab is not usable in Gnome while Eclipse startup (workspace choose and sp...
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.4   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-05-13 09:41 EDT by Andre Dietisheim CLA
Modified: 2018-04-13 16:40 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Dietisheim CLA 2014-05-13 09:41:51 EDT
When starting Luna M7 up in Fedora 20 - which runs gtk3-3.10.8-1.fc20.x86_64 and gnome-shell-3.10.4-2.fc20.x86_64 - I cannot use Alt+Tab while Eclipse is being launched: While the workspace chooser and the splash are active there's no reaction to pressing Alt+Tab in Gnome Shell. The application switcher is not showing up. Once Eclipse is up and running, the workbench window is opened, Alt+Tab is usable again.
Using an alternative application switcher (Alternatetab) solves it for me.
Comment 1 Alexander Kurtakov CLA 2014-05-14 03:09:25 EDT
It should be using gtk2. Can you try starting eclipse with SWT_GTK3=1 to test with GTK3?
Comment 2 Andre Dietisheim CLA 2014-05-14 04:28:52 EDT
Thanks for coming back so quickly!

Yes afaik it's using GTK2. 
I must be doing something wrong: when I add -DSWT_GTK3=1 to eclipse.ini Eclipse wont get up, it's stuck in the splash and wont make it to the workspace chooser. How can I set it to use GTK3 when using eclipse.ini?

When launching Eclipse via the terminal I notice that the "bug" wont happen, Alt+Tab switches to any other window/application that's available. It only happens when launching via dock.
Comment 3 Andre Dietisheim CLA 2014-05-14 04:51:16 EDT
Max reminded me that SWT_GTK3 needs to be exported. Since the "bug" wont happen if I launch Eclipse via a term I ended up having the following in my launcher-file:

Exec=gnome-terminal -x bash -c "export SWT_GTK3=1; cd /opt/eclipse-jee-luna/eclipse; /opt/eclipse-jee-luna/eclipse"

Unfortunately this launches a terminal and the "bug" wont happen. Any pointer please?
Comment 4 Andre Dietisheim CLA 2014-05-14 05:06:47 EDT
So when moving the launch cmd to an external script:

export SWT_GTK3=1
cd /opt/eclipse-jee-luna/
./eclipse

and having 

Exec=/opt/eclipse-jee-luna/run-eclipse.sh

no terminal is launched and Alt+Tabs without flaws. I'm not sure though if I'm now using GTK3. Any way to verify that?
Comment 5 Andre Dietisheim CLA 2014-05-14 07:54:20 EDT
It very much looks like I'm running GTK3 when using the separate run-script (I hit nug #427480). Unfortunately there's no change, Alt+Tab is still not functional while splash and workspace chooser are active.
Comment 6 Eric Williams CLA 2018-04-13 16:40:13 EDT
I cannot reproduce this issue on GTK3.22, 4.8 M6, and Fedora 27.