summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorrhp <rhp>2001-06-18 06:11:53 +0000
committerrhp <rhp>2001-06-18 06:11:53 +0000
commit5fd26a273dc8fb6cb4b98dcb9883457d48544f45 (patch)
tree8fedca52eeab5a7f57dcea2d716ded9cd92bfc2b /src/frame.c
parentd090d9f284e27aee37062c0e2f926075dc5b9a06 (diff)
downloadmetacity-5fd26a273dc8fb6cb4b98dcb9883457d48544f45.tar.gz
...
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/frame.c b/src/frame.c
index 02c9332d..dfa050bf 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -21,7 +21,6 @@
#include "frame.h"
#include "errors.h"
-#include "uislave.h"
void
meta_window_ensure_frame (MetaWindow *window)
@@ -103,7 +102,6 @@ void
meta_window_destroy_frame (MetaWindow *window)
{
MetaFrame *frame;
- MetaFrameInfo info;
if (window->frame == NULL)
return;
@@ -156,7 +154,7 @@ meta_frame_get_flags (MetaFrame *frame)
flags |= META_FRAME_ALLOWS_DELETE;
if (frame->window->type == META_WINDOW_NORMAL)
- flags |= (META_FRAME_ALLOWS_ICONIFY | META_FRAME_ALLOWS_MAXIMIZE);
+ flags |= (META_FRAME_ALLOWS_MINIMIZE | META_FRAME_ALLOWS_MAXIMIZE);
if (!frame->window->has_maximize_func)
flags &= ~META_FRAME_ALLOWS_MAXIMIZE;
@@ -172,6 +170,8 @@ meta_frame_get_flags (MetaFrame *frame)
if (frame->window->on_all_workspaces)
flags |= META_FRAME_STUCK;
+
+ return flags;
}
void
@@ -210,12 +210,11 @@ meta_frame_sync_to_window (MetaFrame *frame,
gboolean need_move,
gboolean need_resize)
{
- meta_verbose ("Syncing frame geometry %d,%d %dx%d (SE: %d,%d) pixel %ld\n",
+ meta_verbose ("Syncing frame geometry %d,%d %dx%d (SE: %d,%d)\n",
frame->rect.x, frame->rect.y,
frame->rect.width, frame->rect.height,
frame->rect.x + frame->rect.width,
- frame->rect.y + frame->rect.height,
- frame->bg_pixel);
+ frame->rect.y + frame->rect.height);
/* set bg to none to avoid flicker */
if (need_resize)