Re: Aspect ratio SizeHint and fullscreen



On Mon, May 05, 2003 at 02:50:00PM -0500, Billy Biggs wrote: 
>   Thanks to all who helped.  I do have one last problem that I must ask:
> any suggestions for current code workarounds?  My current thought is to
> always send the aspect ratio hint, regardless of fullscreen state, and
> never send it if the wm is metacity.  Should I use _NET_WM_NAME to check
> for metacity?  Is there a proper way to work-around older versions of a
> WM?  When not using _NET_WM_STATE_FULLSCREEN, I use override_redirect
> for my fullscreen mode otherwise, and afaik this means that the hints
> won't matter.
> 
>   The idea is that most window managers which support
> _NET_WM_STATE_FULLSCREEN ignore the hint, except metacity, and by next
> year or so fixed versions will be available generally and so I'll enable
> the hint for metacity.
> 
>   Havoc, does this sound reasonable?

Seems fine. Note that GDK has a gdk_screen_get_wm_name() function that
makes this kind of easy; keep in mind that the WM can change at
runtime, GdkScreen has a signal for that.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]