Windows: new window obscured by taskbar

Bug #310730 reported by spider karma
6
Affects Status Importance Assigned to Milestone
Panda3D
Invalid
Low
Unassigned

Bug Description

I copied this from the panda forums:

When Panda windows are created, they appear partially underneath my vertical Windows taskbar. Not a big problem, but if a fix is desired, I have some info..

Raymond Chen addresses this issue in "The Old New Thing" (MonitorFromWindow) and Google Chromium also has code (custom_frame_window.cc - CustomFrameWindow::OnGetMinMaxInfo).

The trick is to query for monitor work area using MonitorFromWindow().

Windows XP SP2
Panda3D 1.5.3

----------------------------------------
In the forum, drwr responded:

Sounds like a useful fix to have. The only subtlety will be to place the window smartly when the user does not ask for a particular window placement, but to place it precisely where the user says (regardless of the taskbar) when the user does ask for a particular placement.

David

Treeform (starplant)
Changed in panda3d:
importance: Undecided → Low
Revision history for this message
rdb (rdb) wrote :

Hmm, can you be a bit more precise? Is it only for fullscreen, or also for windowed? If the latter, you can easily work around it by giving the window a window origin (I believe the window has one by default so a default window should not get obscured by a taskbar.)
What should I do to reproduce it? (sample code?)

Changed in panda3d:
status: New → Incomplete
Revision history for this message
Treeform (starplant) wrote : Re: [Bug 310730] Re: Windows: new window obscured by taskbar

I think this is completely unimportant and should not be a feature.
1. most games run full screen so no task bar at all.
2. you can change the origin of the window yourself if you don't like it.
3. I think we will run into cases which we don't know yet with window
doing something odd for instance on windows7 or other systems, default
behavior is default and is sort of expected.

On Sun, Dec 28, 2008 at 11:04 PM, pro-rsoft <email address hidden> wrote:
> Hmm, can you be a bit more precise? Is it only for fullscreen, or also for windowed? If the latter, you can easily work around it by giving the window a window origin (I believe the window has one by default so a default window should not get obscured by a taskbar.)
> What should I do to reproduce it? (sample code?)
>
> ** Changed in: panda3d
> Status: New => Incomplete
>
> --
> Windows: new window obscured by taskbar
> https://bugs.launchpad.net/bugs/310730
> You received this bug notification because you are subscribed to
> Panda3D.
>

Revision history for this message
spider karma (spider-karma+launchpad-net) wrote :

pro-rsoft:

It occurs with every sample program in the distribution that I've tried in windowed (non full screen) mode.

Treeform:

I'd agree that many applications do not handle this and it is a very minor inconvenience. For me it's more an indicator of code completeness or maturity. I don't want to lobby for extra work with little return, but something like handling the windowing system should work correctly. I do not have a development environment set up yet, but I may be able to attempt the fix myself at a later date.

Revision history for this message
rdb (rdb) wrote :

Well, I can't entirely grasp that, because by default the win-origin is set to 50x50 (I think) and thus your taskbar has to be *really* huge to obscure the window.
If we limit the desktop size by subtracting the taskbar size from it that would break people's code.

From drwr: "The only subtlety will be to place the window smartly when the user does not ask for a particular window placement, but to place it precisely where the user says (regardless of the taskbar) when the user does ask for a particular placement."
Since in the Config.prc file the win-origin is *always* set to a particular placement, the vertical taskbar should only be taken into account when someone explicitly removes it from the Config.prc file.

On the other hand, we could add a config variable, like win-offset-from-taskbar or something like that, and if it is set to True, the window could be placed on your way. And we won't have to break existing code then.

Revision history for this message
Josh Enes (joshenes) wrote :

I'd like to suggest that this bug be closed, since the default behaviour of Panda is now to open the window in the center of the screen.

Josh Enes (joshenes)
Changed in panda3d:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.