Theme breakage! Themes have to implement "border" frames now, see Atlanta
2002-06-21 Havoc Pennington <hp@pobox.com> Theme breakage! Themes have to implement "border" frames now, see Atlanta for an example. Fixes #84285 * src/tools/metacity-window-demo.c (do_appwindow): add a border-only window * src/window.c (update_mwm_hints): read border only from the MWM hints * src/window.h (struct _MetaWindow): add border_only flag * src/core.c (meta_core_get_frame_type): report border type if required * src/common.h (enum): add META_FRAME_TYPE_BORDER
This commit is contained in:

committed by
Havoc Pennington

parent
854e58fd82
commit
de42a62f4e
39
src/frame.c
39
src/frame.c
@ -203,24 +203,35 @@ MetaFrameFlags
|
||||
meta_frame_get_flags (MetaFrame *frame)
|
||||
{
|
||||
MetaFrameFlags flags;
|
||||
|
||||
flags = META_FRAME_ALLOWS_MENU;
|
||||
|
||||
if (frame->window->has_close_func)
|
||||
flags |= META_FRAME_ALLOWS_DELETE;
|
||||
|
||||
if (frame->window->has_maximize_func)
|
||||
flags |= META_FRAME_ALLOWS_MAXIMIZE;
|
||||
|
||||
if (frame->window->has_minimize_func)
|
||||
flags |= META_FRAME_ALLOWS_MINIMIZE;
|
||||
|
||||
if (frame->window->has_shade_func)
|
||||
flags |= META_FRAME_ALLOWS_SHADE;
|
||||
flags = 0;
|
||||
|
||||
if (frame->window->border_only)
|
||||
{
|
||||
; /* FIXME this may disable the _function_ as well as decor
|
||||
* in some cases, which is sort of wrong.
|
||||
*/
|
||||
}
|
||||
else
|
||||
{
|
||||
flags |= META_FRAME_ALLOWS_MENU;
|
||||
|
||||
if (frame->window->has_close_func)
|
||||
flags |= META_FRAME_ALLOWS_DELETE;
|
||||
|
||||
if (frame->window->has_maximize_func)
|
||||
flags |= META_FRAME_ALLOWS_MAXIMIZE;
|
||||
|
||||
if (frame->window->has_minimize_func)
|
||||
flags |= META_FRAME_ALLOWS_MINIMIZE;
|
||||
|
||||
if (frame->window->has_shade_func)
|
||||
flags |= META_FRAME_ALLOWS_SHADE;
|
||||
}
|
||||
|
||||
if (frame->window->has_move_func)
|
||||
flags |= META_FRAME_ALLOWS_MOVE;
|
||||
|
||||
|
||||
if (frame->window->has_resize_func &&
|
||||
!frame->window->maximized &&
|
||||
!frame->window->shaded)
|
||||
|
Reference in New Issue
Block a user