Bug 24052 - Windows Task bar hidden even though "always on top" specified
Summary: Windows Task bar hidden even though "always on top" specified
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal with 18 votes (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 26871 28028 33672 45059 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-24 15:00 EDT by John Arthorne CLA
Modified: 2022-02-06 16:40 EST (History)
22 users (show)

See Also:


Attachments
jpg screen shot showing hidden task bar (181.05 KB, image/jpeg)
2002-09-24 15:00 EDT, John Arthorne CLA
no flags Details
screen shot of the windows when the menu bar disappears (25.06 KB, image/gif)
2007-08-31 13:39 EDT, Constantino Cronemberger CLA
no flags Details
Screenshot of problem (orange is my self-censorship) (9.24 KB, image/png)
2013-04-19 14:59 EDT, David Balažic CLA
no flags Details
GifCam recording of taskbar getting sent behind other windows (287.72 KB, image/gif)
2013-09-05 20:06 EDT, Timo Kinnunen CLA
no flags Details
GifCam recording of a simpler repro, this one doesn't need any dragging (159.24 KB, image/gif)
2013-09-06 11:20 EDT, Timo Kinnunen CLA
no flags Details
Taskbar settings (37.60 KB, image/png)
2020-06-05 07:17 EDT, David Balažic CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2002-09-24 15:00:02 EDT
Build 20020917

I use the windows task bar in "auto-hide" and "always on top" mode, at the
bottom of my screen.  I have my main Eclipse workbench window filling most of
the screen, so that at the bottom it overlaps the area occupied by the windows
task bar.  I have noticed in builds from the past month or so that Eclipse often
ends up on top of the windows task bar, even though the task bar should be
"always on top".
I do not have a reproducible case, but in the course of developing this happens
to me at least every half hour.  This did not occur at all in release 2.0, and I
have not seen this behaviour in any other applications.

I will attach a screen capture that shows this.  Notice in this picture that the
windows task bar has popped up on top of Netscape, but is still hidden behind
Eclipse.
Comment 1 John Arthorne CLA 2002-09-24 15:00:49 EDT
Created attachment 2055 [details]
jpg screen shot showing hidden task bar
Comment 2 Steve Northover CLA 2002-09-26 09:01:18 EDT
Thanks John.  I have no idea how this could be happening.  Please be on the 
look out for a repeatable case.  I tried a bit and couldn't get it to happen.
Comment 3 John Arthorne CLA 2002-09-26 12:55:58 EDT
I'll keep trying.  It feels timing related though.  Sometimes I can reproduce
it, then I repeat exactly the same steps again and it doesn't happen. The basic
flavour is that I click somewhere that causes widgets to be created or revealed,
and while it is still painting I move the mouse to the bottom of the screen to
cause the task bar to pop up.  Here are some cases where it has happened (but
not reproducibly):

- Click on another perspective in the toolbar on the left hand side.  While it
is coming up, move mouse to bottom of screen to reveal taskbar, but it pops up
behind Eclipse shell.

- Move mouse to bottom of screen, and task bar pops up on top.  Hit Ctrl+F6 to
switch to another editor, and Eclipse jumps on top of the taskbar.

- While editing and using F3 to jump around between editors, occasionally move
mouse quickly to bottom of screen.  Sometimes the taskbar will come up behind
eclipse.

Another note: once the taskbar is behind Eclipse, it will stay there.  Switching
to other applications, revealing and hiding the taskbar, will not bring it back
on top of Eclipse.  Only clicking on the taskbar itself will bring it back to
the top once it has dropped behind.
Comment 4 Sonia Dimitrov CLA 2002-11-21 14:54:45 EST
*** Bug 26871 has been marked as a duplicate of this bug. ***
Comment 5 quartz quartz CLA 2002-11-23 12:41:23 EST
must have something to do with those buggy tooltips: some did badly use always
on top, or the native ui stuff is again in the way.
Comment 6 Sonia Dimitrov CLA 2002-12-11 10:40:42 EST
*** Bug 28028 has been marked as a duplicate of this bug. ***
Comment 7 Billy Biggs CLA 2005-09-12 18:09:43 EDT
*** Bug 33672 has been marked as a duplicate of this bug. ***
Comment 8 Billy Biggs CLA 2005-09-12 18:10:46 EDT
*** Bug 45059 has been marked as a duplicate of this bug. ***
Comment 9 Billy Biggs CLA 2005-09-12 18:13:09 EDT
From Randy Hudson on bug 33672:

  "This may seem obvious, but is it possible that you don't have the setting
    "Keep the taskbar on top of other windows" enabled? I have auto-hide
    and keep-on-top enabled, and I have never seen this problem."
Comment 10 John Arthorne CLA 2005-09-12 18:22:47 EDT
Randy's comment doesn't apply in my case.  I have always on top turned on. As
seen from the screen shot, other apps are drawing behind the task bar as
expected, while only Eclipse is drawing on top of the task bar.
Comment 11 quartz quartz CLA 2005-09-12 19:13:10 EDT
To easy your pain:
my workaround is to press the 'windows' key.
(Yes, I finally found a usage for it after all these years!)
Comment 12 Julien Ruaux CLA 2006-02-12 18:16:54 EST
I have the same problem, and it has been happening since Eclipse version 1.
Moreover Thinkpad laptops don't have the windows key...
Comment 13 Piotr Kaminski CLA 2006-07-17 20:02:22 EDT
I've been having the same problem with Eclipse for a while as well (I don't remember when it started).  Interestingly, it affects not only the primary Windows task bar, but also the additional task bar created by UltraMon on my secondary monitor, and the sidebar created by Desktop Sidebar.  Both of these are set as "hidden, always on top" as well, which may point towards a more general z-order problem in Eclipse.
Comment 14 Josh CLA 2006-07-18 13:11:45 EDT
I have gotten the same thing in windows, it also does this when using a shell replacement for explorer.
Comment 15 David Balažic CLA 2006-10-12 12:21:35 EDT
Me too.
I also noticed it on my coworkers PC.

Windows XP Pro SP2, Eclipse 3.2

(for those with no Windows key, try ctrl-ESC)

I usualy see this, when I start the Java program I'm working on from Eclipse (F11 key, debug).
Comment 16 Steve Northover CLA 2006-10-12 13:09:39 EDT
Sigh ... what could we be doing?
Comment 17 Sean LeBlanc CLA 2007-04-09 12:38:18 EDT
I have the same problem, and I've noticed this happening for some time over several years for many versions of Eclipse, mostly against XP.
Comment 18 Constantino Cronemberger CLA 2007-08-27 07:48:42 EDT
Wow, this bug is already 5 years old.

This also happens to me with my "Quick Launch" tool bar set to "always on top" and "auto-hide".

I am using Eclipse 3.3.0.
Comment 19 Steve Northover CLA 2007-08-27 11:15:44 EDT
> Wow, this bug is already 5 years old.

Since I have nothing to debug and the problem does not happen to me or anyone else I know, how can I possibly make progress on it?

Can you make it happen every time?  If so, please get me some steps.
Comment 20 David Balažic CLA 2007-08-27 11:31:56 EDT
If it helps, I also noticed similar problems with other Java based programs.
The jump to the foregorund, grab focus etc...
For example MKS Integrity.
So maybe it is a JRE problem.
I personally didn't experience the eclipse-over-taskbar problem for months now, so I can't help.
Comment 21 Steve Northover CLA 2007-08-27 11:59:49 EDT
I don't see how it could be a Java problem ... except for running javaw.exe vs java.exe.  Hopefully, the JVM isn't making window system calls.
Comment 22 David Balažic CLA 2007-08-27 12:03:11 EDT
Who is then ???
(read: how does then the picture get on the monitor ?)
Comment 23 Constantino Cronemberger CLA 2007-08-31 09:07:09 EDT
Hi,

After some days testing this problem I have the following information:

- The toolbar gets under all the other windows, even Putty or Outlook;
- I have no idea of how this starts happening, but it takes a long time;
- I started using Eclipse a few weeks ago and I never had this problem for years using other Java tools, that is why I think Eclipse is causing this;
Comment 24 Constantino Cronemberger CLA 2007-08-31 09:35:30 EDT
It just happened again and now I noticed that it was after a small freeze in Eclipse where the menu bar disappeared for a while (the area occupied by the menu was still there but it was blank).

I was in the C/C++ perspective.
Comment 25 Nobody - feel free to take it CLA 2007-08-31 10:38:15 EDT
I have seen this problem both with Eclipse and with other Java applications.  Could one of these be related:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4737788
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6560190

Don't know if it's important, but I'm running dual screen.
Comment 26 Constantino Cronemberger CLA 2007-08-31 13:33:13 EDT
Happened again. At this time I typed crtl-L and it did not respond, after that the menu bar disappeared for a while and then I verified that the problem really happened.
Comment 27 Constantino Cronemberger CLA 2007-08-31 13:39:22 EDT
Created attachment 77490 [details]
screen shot of the windows when the menu bar disappears

Notice that the icon is not the Eclipse one.
Comment 28 David Balažic CLA 2007-10-23 08:46:58 EDT
Eclipse 3.1.2 and 3.3.0 on WinXP, sun java build 1.5.0_13-b05

I use it in my work and experience the problem several times each day.

I always have the eclipse windows maximized, maybe that is a contributing factor ?
Comment 29 Steve Northover CLA 2008-05-29 12:21:05 EDT
I'm sorry but WORKSFORME.  We never got it to happen here so we didn't have anything to debug.
Comment 30 quartz quartz CLA 2008-05-29 20:09:53 EDT
>I usualy see this, when I start the Java program I'm working on from Eclipse

Interresting. I noticed that too.

>z-order problem in Eclipse

I agree. In fact, another comment says that the taskbar goes under other apps too.
Could windows shell be raising that taskbar Z index so high that it wraps around to 0 or negative?

I still experience that with eclipse 3.4.
I still have XP sp2.

Question, are all of you guys on the classic window manager?
Just in case...I am. Also, I don't use animations, I have a border width at 3 pixels. I have had powertoys tweakui set the 'don't steal focus - flash n times in taskbar' option enabled, I have menu delay set to 1 ms. Does anything in there ring any bell?


>Hopefully, the JVM isn't making window system calls
SWT is quite native... I wouldn't rule that out, no?
Comment 31 David Balažic CLA 2008-05-30 02:46:51 EDT
I have the same windows settings as in comment 30, except I did not change anything related to "border width".
Comment 32 Steve Northover CLA 2008-05-30 10:43:42 EDT
Do you have steps on your computer that makes this bug happen?
Comment 33 Missing name Missing name CLA 2008-05-31 13:52:06 EDT
I also experienced this problem on two installations of Eclipse 3.4M6 on two different pc with WinXP pro sp2.
Very hard to replicate but always happen to me.
Comment 34 Aleks Totic CLA 2008-05-31 14:09:00 EDT
I've got powertoys with "Do not steal focus" enabled too.
Comment 35 David Balažic CLA 2008-10-06 07:48:19 EDT
Happens still with eclipse 2.4.1 and Java 1.6.0_07
Comment 36 David Balažic CLA 2009-12-23 11:20:46 EST
Happened again.

Eclipse EE 3.5.1 , Sun Java  1.6.0_17-b04

XP Pro SP3

This time I had _no_ autohide on task bar. It is all default settings. I do have Classic Windows look.

I do have two monitors, but was using only one for the last few hours.
Comment 37 Paul Rooney CLA 2010-08-27 04:25:28 EDT
Also happening on Windows 7 with eclipse 3.6 on jre 1.6.0_21
Comment 38 sina iman CLA 2010-10-06 15:18:05 EDT
This issue was happening to me with various programs on Windows 7 x64. (Chrome, Eclipse, Outlook 2010) The behavior only occurred when at least one of these windows was maximized. I was able to resolve the issue by changing the properties of my taskbar and unchecking "lock taskbar". Now, my taskbar functions as expected in Chrome, Eclipse, and Outlook.
Comment 39 Angela Grace CLA 2010-11-07 18:12:04 EST
(In reply to comment #15)
> Me too.
> I also noticed it on my coworkers PC.
> Windows XP Pro SP2, Eclipse 3.2
> (for those with no Windows key, try ctrl-ESC)
> I usualy see this, when I start the Java program I'm working on from Eclipse
> (F11 key, debug).

I have the same problem. I will keep reading the thread.
Comment 40 sina iman CLA 2010-11-11 01:23:45 EST
(In reply to comment #38)
> This issue was happening to me with various programs on Windows 7 x64. (Chrome,
> Eclipse, Outlook 2010) The behavior only occurred when at least one of these
> windows was maximized. I was able to resolve the issue by changing the
> properties of my taskbar and unchecking "lock taskbar". Now, my taskbar
> functions as expected in Chrome, Eclipse, and Outlook.

I'm amending my previous post. The action of changing the "lock taskbar" preference results in only a temporary fix, the same annoying taskbar behavior would eventually resurface after this change.
Comment 41 David Balažic CLA 2011-02-14 05:21:33 EST
Windows XP Pro SP3

Sun Java "1.6.0_23"

Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 1
Build id: 20100917-0705


Classic look
Task bar is set to:
 - lock the taskbar : OFF
 - Auto-hide the taskbar: OFF
 - Keep the taskbar on top of other windows: ON
 - Group similar taskbar buttons: OFF
 - Show Quick Launch: OFF
Notification area: 
 - Show the clock is ON
 - Hide inactive icons: OFF

I am also running Taskbar Shuffle 2.5


Again the taskbar went under all other Windows.

I booted a couple hours ago, started Firefox, Eclipse, Remote Desktop, Skype (two instances), Oracle SQL Developer Data Modeler, Notepad, MS OCS (Office Communicator 2007), ESET NOD32 v4.0.

After a while it just happened. Not sure when exactly. In eclipse I did some SVN operations (subclipse plugin).
Comment 42 Rainer Blome CLA 2012-10-16 15:40:20 EDT
Let us celebrate the tenth anniversary of this issue!

Some weeks ago, I started to regularly use Eclipse.
And verily, this issue is bugging me.
You can read about my adventures with this issue on
http://superuser.com/questions/483453/windows-7-task-bar-stuck-in-hiding-how-to-fix

Here's some specifics:
Windows 7 Pro SP1 64bit
Eclipse 3.0.2 (Rational AD 6.0.1, to be specific).
"Windows Classic" style
(Desktop -> Personalize -> scroll down to "Basic and High Contrast Themes" to fin d it)
Comment 43 John Arthorne CLA 2012-10-16 17:00:52 EDT
For what it's worth, I no longer see this happening with Eclipse Classic 4.2 on Windows 7. In fact I don't even see an "always on top" option for the taskbar in Windows 7.
Comment 44 David Balažic CLA 2013-04-19 14:59:01 EDT
I just experienced this after a long time.

Using Windows 7 Pro 64 bit SP1
and Juno SR2 and Indigo SR2, Java 1.7u17 (64 bit)

I have the classic theme in Windows, the taskbar is standard, I did not change any settings related to it (it is always shown, no autohide)

The actual window which got over the taskbar was the Command Prompt console.

I'll attach a screenshot.
Comment 45 David Balažic CLA 2013-04-19 14:59:53 EDT
Created attachment 229924 [details]
Screenshot of problem (orange is my self-censorship)
Comment 46 Timo Kinnunen CLA 2013-09-05 20:06:16 EDT
Created attachment 235214 [details]
GifCam recording of taskbar getting sent behind other windows

This taskbar issue has been bothering me for some time now so I decided to see if I could find a reproducible test case for it. Turned out simpler than I expected:

1. Click on a view's tab and start dragging it until you see the 2 pixel lines of taskbar disappear from the bottom of the screen.
2. Release the dragged view at its starting location or in an invalid location. Taskbar visibility can change again regardless of whether it already changed during this gesture.

When the taskbar disappears it goes behind all other windows as well. The problem seems to be caused by the overlay that shows green boxes when dragging views around somehow "deposing" taskbar and then not going away gracefully. I couldn't catch the overlay while recording as it goes on top of GifCam, which it probably shouldn't do.

You can see colors change slightly as the overlay becomes active. I had never realized it was happening from looking at the real-time truecolor desktop but this is easy to see in the 256-color GIF recording. Look at the grey background color in the welcome screen or the bright yellow river banks in the desktop wallpaper in the attached file.
Comment 47 Rainer Blome CLA 2013-09-06 06:51:07 EDT
Good that there is a way to reproduce the issue, at least for some.

With Eclipse 3.0.2 however, this does not reproduce the problem.
My 3.0.2 does not use "green" view placing indicators,
the indicators are 3-pixel-wide checkered frames.
Comment 48 Timo Kinnunen CLA 2013-09-06 11:20:34 EDT
Created attachment 235246 [details]
GifCam recording of a simpler repro, this one doesn't need any dragging

Here's an easier repro, no dragging needed. Steps:

1. Press and hold on a tab for a few seconds.

The careful arrangement in the recording is only for illustrative purposes, the same thing seems to happen regardless of workbench window position, size, maximized state or the tab used.
Comment 49 David Balažic CLA 2013-09-09 09:55:42 EDT
Great work, Timo!

I can confirm that the steps to reproduce the problem work on Windows 7 Pro SP1 64 bit, using Eclipse Kepler Release (4.3.0) and Indigo SR2 (3.7.2).

As before, I have the Classic Windows theme and two monitors.
Comment 50 Rainer Blome CLA 2014-02-21 07:06:32 EST
With Eclipse 4.3.1 Kepler the issue still occurs, and I can reproduce it (most of the time) with Timo's second method, by pressing on a tab for a while.
Comment 51 Timo Kinnunen CLA 2014-02-21 10:28:57 EST
Which reminded me that I had something in mind that I didn't around to until now. Which was to create a detector to make some noise as soon as taskbar gets hidden. If people affected by this bug could leave this code running in the background and report what was happening in the IDE at the time it beeps it could help narrow down the cause to some specific views, perspectives or plugins.

To do this, have taskbar auto-hiding and always on top enabled, taskbar itself placed at the bottom edge, and Eclipse's window maximized. Then leave this self-contained class running until it beeps. Running it from Eclipse works just fine for this purpose:

	public class TaskbarObscuredDetector {
	  public static void main(String[] args) throws java.awt.AWTException {
	    java.awt.Toolkit tk = java.awt.Toolkit.getDefaultToolkit();
	    int w = Math.max(2, tk.getScreenSize().width);
	    int h = tk.getScreenSize().height;
	    java.awt.Rectangle r = new java.awt.Rectangle(0, h - 1, w, 1);
	    java.awt.Robot robot = new java.awt.Robot();
	    boolean same = false;
	    while(true) {
	      int[] rgb = robot.createScreenCapture(r).getRGB(0, 0, w, 1, null, 0, w);
	      java.util.Arrays.sort(rgb);
	      if(same == false & (same = rgb[0] == rgb[rgb.length - 1])) {
	        tk.beep();
	        System.out.println(new java.text.SimpleDateFormat(
	          "yyyy-MM-dd HH:mm:ss.SSS").format(System.currentTimeMillis()));
	      }
	      robot.delay(100);
	    }
	  }
	}
Comment 52 Timo Kinnunen CLA 2014-02-22 13:59:31 EST
Wow, what a difference instant feedback makes! I've been monitoring the taskbar since yesterday and during that time the taskbark got hidden 10 times, so it's pretty rare but frequent enough to be really annoying. This is what was happening in the IDE during those 10 instances the bug was triggered:

1) ALT-Tab from non-maximized Planning window to maximized Java+Git window.
2) Double-click in Choose Type modal dialog to select an item and return back to modal Move Static Member dialog. 
3) Clicking maximized Java+Git window's title bar from nonmaximized Planning window that is active. 
4) Clicking OK in the dialog for cleaning projects, all projects was selected.
5) Switching perspective windows just like in 3).
6) Content Assist popup opened and then immediately closed in response to mouse movements over Java source code..
7) When a debugged Eclipse Application was closed from top-right close button and normal Eclipse got focus.
8) When Content Assist showed 2 non-model popup views after pressing .-key in block editing mode. Status line text also changed at the same time. 
9) Almost same as 8 and only few minutes later, but this time in response to pressing CTRL-Space.
10) Switching perspective windows just like in 3).
Comment 53 Thomas Hillebrandt CLA 2019-03-27 14:31:31 EDT
I kinda can't believe that after 17 years, SEVENTEEN years, this bug is still alive and well.

It is very disruptive to my overall workflow that Eclipse will randomly (and VERY frequently) decide to - well - eclipse the Windows taskbar. It shouldn't be a thing, yet it's a thing, and apparently has been for TWO DECADES.
Comment 54 David Balažic CLA 2020-06-05 07:17:21 EDT
Created attachment 283176 [details]
Taskbar settings

Happened again.

Windows 10
two monitors
Eclipse 2020-03 (4.15.0) Eclipse IDE for Enterprise Java Developers
Eclipse 2019-03 (4.11.0) Eclipse IDE for Enterprise Java Developers.
Java 11.0.7

Task Bar settings: see attachment

(not sure which Eclipse caused it, I was running 4.15 then started 4.11 and shortly after noticed the problem; both were maximized, then in unmaximized the 4.11 and then I noticed the problem)
Comment 55 David Balažic CLA 2021-12-21 07:30:58 EST
Happened again with:

Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)

Version: 2021-03 (4.19.0)
Build id: 20210312-0638


Windows 2012R2

over Remote Desktop connection (two physical monitors, one used for the full screen RDP connection)
Comment 56 Etienne Dechamps CLA 2022-02-06 16:40:08 EST
I'm not an Eclipse user, but I stumbled upon this bug report when doing research around "taskbar not always on top" issues in general.

I would encourage anyone attempting to investigate this to take a close look at RudeWindowFixer: https://github.com/dechamps/RudeWindowFixer

I'm not sure RudeWindowFixer itself will fix this, but some of the investigation I did (which is described in great detail at that link) might still apply, and might help figuring out the issue affecting Eclipse specifically. In particular, one might want to double check that a "sneaky" full screen window is not being displayed while Eclipse is in use.