Skip to content

Commit

Permalink
Hide JavaEmbeddedFrame from appearing in alt-tab and window list applets
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Jan 13, 2014
1 parent 4803df3 commit d001c15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ MyApplet.prototype = {
}
);

windows = windows.filter( Main.isInteresting );

if(sticky_windows.length && (wks==0)) {
for ( let i = 0; i < sticky_windows.length; ++i ) {
let metaWindow = sticky_windows[i];
Expand Down
2 changes: 2 additions & 0 deletions js/ui/appSwitcher/appSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ function getWindowsForBinding(binding) {
for (let i in windowActors)
windows.push(windowActors[i].get_meta_window());

windows = windows.filter( Main.isInteresting );

switch(binding.get_name()) {
case 'switch-panels':
// Switch between windows of all workspaces
Expand Down
3 changes: 3 additions & 0 deletions js/ui/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,9 @@ function queueDeferredWork(workId) {
* Returns (boolean): whether the window is interesting
*/
function isInteresting(metaWindow) {
if (metaWindow.get_title() == "JavaEmbeddedFrame")
return false;

if (tracker.is_window_interesting(metaWindow)) {
// The nominal case.
return true;
Expand Down

0 comments on commit d001c15

Please sign in to comment.