summaryrefslogtreecommitdiff
path: root/src/frames.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-05-09 22:34:00 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-05-09 22:34:00 +0000
commit912afb6e6bc029e4be99f2d145399c63a5a88a80 (patch)
tree1f4d50486395362693c66463990d7cc79a177b24 /src/frames.c
parent6d2c558bd8c4f3159f46ab2c58f1c51471785b9f (diff)
downloadmetacity-912afb6e6bc029e4be99f2d145399c63a5a88a80.tar.gz
metacity-912afb6e6bc029e4be99f2d145399c63a5a88a80.tar.bz2
DefaultScreen() returns the screen number not Screen*
2002-05-09 Havoc Pennington <hp@redhat.com> * src/frames.c (show_tip_now): DefaultScreen() returns the screen number not Screen* * src/frame.c (meta_frame_sync_to_window): immediately repaint frame whenever we resize it, if we're inside a grab operation. * src/frames.c (meta_frames_repaint_frame): new function * src/window.c (meta_window_new): initialize window's colormap (meta_window_notify_focus): install the colormap for a window when it gets focus, uninstall on unfocus. * src/window.h (struct _MetaWindow): store window's colormap * src/display.c (event_callback): note changes to window colormap * src/frame.c (EVENT_MASK): add ColormapChangeMask
Diffstat (limited to 'src/frames.c')
-rw-r--r--src/frames.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/frames.c b/src/frames.c
index e5f57e2..7ab3380 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -636,6 +636,8 @@ meta_frames_set_title (MetaFrames *frames,
frame = meta_frames_lookup_window (frames, xwindow);
+ g_assert (frame);
+
g_free (frame->title);
frame->title = g_strdup (title);
@@ -648,6 +650,21 @@ meta_frames_set_title (MetaFrames *frames,
gdk_window_invalidate_rect (frame->window, NULL, FALSE);
}
+void
+meta_frames_repaint_frame (MetaFrames *frames,
+ Window xwindow)
+{
+ GtkWidget *widget;
+ MetaUIFrame *frame;
+
+ widget = GTK_WIDGET (frames);
+
+ frame = meta_frames_lookup_window (frames, xwindow);
+
+ g_assert (frame);
+
+ gdk_window_process_updates (frame->window, TRUE);
+}
static void
show_tip_now (MetaFrames *frames)
@@ -731,7 +748,7 @@ show_tip_now (MetaFrames *frames)
#ifdef HAVE_GTK_MULTIHEAD
screen_number = gdk_screen_get_number (gtk_widget_get_screen (GTK_WIDGET (frames)));
#else
- screen_number = XScreenNumberOfScreen (DefaultScreen (gdk_display));
+ screen_number = DefaultScreen (gdk_display);
#endif
meta_fixed_tip_show (gdk_display,
screen_number,