The function wFrameWindowCreate in wManageWindow is replaced by
the wframewindow_create and the wframewindow_map functions.
In this step, the function do the same code but now,
in functions that are screen independent.

Signed-off-by: Rodolfo García Peñas (kix) <[email protected]>
---
 src/window.c | 39 ++++++++++++++++++++-------------------
 1 file changed, 20 insertions(+), 19 deletions(-)

diff --git a/src/window.c b/src/window.c
index dc634c8..30c2a2d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1066,15 +1066,16 @@ WWindow *wManageWindow(WScreen *scr, Window window)
        if (HAS_BORDER(wwin))
                foo |= WFF_BORDER;
 
-       wwin->frame = wFrameWindowCreate(scr, window_level,
-                                        x, y, width, height,
-                                        &wPreferences.window_title_clearance,
-                                        &wPreferences.window_title_min_height,
-                                        &wPreferences.window_title_max_height,
-                                        foo,
-                                        scr->window_title_texture,
-                                        scr->resizebar_texture, 
scr->window_title_color, &scr->title_font,
-                                        wattribs.depth, wattribs.visual, 
wattribs.colormap);
+       wwin->frame = wframewindow_create(width, height);
+       wframewindow_map(wwin->frame, scr, window_level, x, y,
+                     &wPreferences.window_title_clearance,
+                     &wPreferences.window_title_min_height,
+                     &wPreferences.window_title_max_height,
+                     foo,
+                     scr->window_title_texture,
+                     scr->resizebar_texture, scr->window_title_color,
+                     &scr->title_font,
+                     wattribs.depth, wattribs.visual, wattribs.colormap);
 
        wwin->frame->flags.is_client_window_frame = 1;
        wwin->frame->flags.justification = wPreferences.title_justification;
@@ -1339,16 +1340,16 @@ WWindow *wManageInternalWindow(WScreen *scr, Window 
window, Window owner,
        foo |= WFF_LANGUAGE_BUTTON;
 #endif
 
-       wwin->frame = wFrameWindowCreate(scr, WMFloatingLevel,
-                                        wwin->frame_x, wwin->frame_y,
-                                        width, height,
-                                        &wPreferences.window_title_clearance,
-                                        &wPreferences.window_title_min_height,
-                                        &wPreferences.window_title_max_height,
-                                        foo,
-                                        scr->window_title_texture,
-                                        scr->resizebar_texture, 
scr->window_title_color, &scr->title_font,
-                                        scr->w_depth, scr->w_visual, 
scr->w_colormap);
+       wwin->frame = wframewindow_create(width, height);
+       wframewindow_map(wwin->frame, scr, WMFloatingLevel,
+                        wwin->frame_x, wwin->frame_y,
+                        &wPreferences.window_title_clearance,
+                        &wPreferences.window_title_min_height,
+                        &wPreferences.window_title_max_height,
+                        foo,
+                        scr->window_title_texture,
+                        scr->resizebar_texture, scr->window_title_color, 
&scr->title_font,
+                        scr->w_depth, scr->w_visual, scr->w_colormap);
 
        XSaveContext(dpy, window, w_global.context.client_win, (XPointer) & 
wwin->client_descriptor);
 
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to