Re: [osg-users] How to prevent resize of viewer window (WindowsandLinux)

2012-02-29 Thread Robert Osfield
Hi Karl,

Is that you are trying to prevent the resize done by the window
manager?  Under X11 there is the override redirect flag to prevent the
window manager taking control of the window size so you can get
exactly the size you want, however, it also prevents the window
manager from decorating the window so only ideal for full screen
windows.  To set this flag when creating your GraphicsWindows set the
osg::Traits::overrideRedirect member variable to true.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] How to prevent resize of viewer window (WindowsandLinux)

2012-02-28 Thread Jason Daly

On 02/28/2012 04:04 PM, Cary, Karl A. wrote:

I would be very interested in this as well. I have been having this
issue for a long time. Our development systems all have one widescreen
monitor at 1920x1080 and then one SD monitor at 1280x1024. If we want to
run a 1280x1024 window on the widescreen as the left monitor, all is
fine. However if you want it to run on the 1280x1024 monitor and it is
the left most monitor, only 75% of the time it's fine. The other 25% go
between showing up on the wrong screen and running at 1280x1024 inside
of a 1920x1080 full screen window.


Hi, Karl,

Sounds like you've got a different problem to me.

My patch is only for preventing the interactive resizing of the window 
(i.e: by clicking the mouse on the window's border and dragging it).


I've seen problems like you mention before (I'm guessing you're on 
Linux).  Usually, some combination of options to the xorg.conf file can 
be set to fix it, or at least make it behave consistently.  If you're 
using the NVIDIA proprietary driver, check the driver's README.txt file 
for a list of options you can set.


--"J"

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] How to prevent resize of viewer window (WindowsandLinux)

2012-02-28 Thread Cary, Karl A.
I would be very interested in this as well. I have been having this
issue for a long time. Our development systems all have one widescreen
monitor at 1920x1080 and then one SD monitor at 1280x1024. If we want to
run a 1280x1024 window on the widescreen as the left monitor, all is
fine. However if you want it to run on the 1280x1024 monitor and it is
the left most monitor, only 75% of the time it's fine. The other 25% go
between showing up on the wrong screen and running at 1280x1024 inside
of a 1920x1080 full screen window.

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jason
Daly
Sent: Friday, February 24, 2012 12:05 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] How to prevent resize of viewer window
(WindowsandLinux)

On 02/24/2012 04:13 AM, Robert Osfield wrote:
> You should be able to do the cross platform route, but if there is a 
> bug on the OSG side on one particular platform we as a community just 
> need to fix it.  I just have access to Linux, and have very little 
> Windows experience so can't help out with debugging the Windows side, 
> so have to rely on Windows dev to get things working perfectly under 
> Windows - this normally works out pretty well.
>
> To resolve the issue the best route would be to create a small example

> that illustrates the problem so that others can reproduce, confirm the

> problem and then work to fix it.  Modifying an existing osg example 
> would probably be a good place to start.

I found a little program I can test with.  It looks like the MWM
property for resizing is being set correctly, just the window manager
(Metacity, in my case) is ignoring it.  I'm putting together a
submission that uses the ICCCM hints instead.

--"J"

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org