summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/frame.c4
-rw-r--r--src/ui/frames.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/core/frame.c b/src/core/frame.c
index f2405922..070fee79 100644
--- a/src/core/frame.c
+++ b/src/core/frame.c
@@ -146,6 +146,10 @@ meta_window_ensure_frame (MetaWindow *window)
/* stick frame to the window */
window->frame = frame;
+ /* Now that frame->xwindow is registered with window, we can set its
+ * style.
+ */
+ meta_ui_update_frame_style (window->screen->ui, frame->xwindow);
if (window->title)
meta_ui_set_frame_title (window->screen->ui,
window->frame->xwindow,
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 065baf8e..74742e79 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -579,7 +579,6 @@ meta_frames_manage_window (MetaFrames *frames,
gdk_window_set_user_data (frame->window, frames);
frame->style = NULL;
- meta_frames_attach_style (frames, frame);
/* Don't set event mask here, it's in frame.c */