This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.

The branch, next has been updated
       via  44aff57161d50bbf12a14442cec5bd6f3899e645 (commit)
       via  9f957543fe571a948948b49741f02e9c191decbf (commit)
      from  e23f4d1d8fba12aa0d0a3f7926d844f2f4c75c9e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/44aff57161d50bbf12a14442cec5bd6f3899e645

commit 44aff57161d50bbf12a14442cec5bd6f3899e645
Author: Rodolfo García Peñas (kix) <[email protected]>
Date:   Mon Oct 7 00:12:11 2013 +0200

    Removed unused keymove_tick variable
    
    The variable keymove_tick is set, but is never used after, so can
    be removed.
    
    kix@osaka:~/src/wmaker/git/wmaker-crm/src$ grep keymove_tick *[ch]
    moveres.c:                      scr->keymove_tick = 0;
    screen.h:    int keymove_tick;
    kix@osaka:~/src/wmaker/git/wmaker-crm/src$
    
    Signed-off-by: Rodolfo García Peñas (kix) <[email protected]>

diff --git a/src/moveres.c b/src/moveres.c
index 33ad453..37affa6 100644
--- a/src/moveres.c
+++ b/src/moveres.c
@@ -1471,11 +1471,7 @@ int wKeyboardMoveResizeWindow(WWindow * wwin)
                                };
 
                if (done) {
-                       scr->keymove_tick = 0;
-                       /*
-                          WMDeleteTimerWithClientData(&looper);
-                        */
-                       if (!opaqueMoveResize) {/*ctrlmode=> resize    */
+                       if (!opaqueMoveResize) {        /* ctrlmode => resize */
                                if (wwin->flags.shaded || 
scr->selected_windows) {
                                        if (scr->selected_windows)
                                                drawFrames(wwin, 
scr->selected_windows, off_x, off_y);
@@ -1484,7 +1480,7 @@ int wKeyboardMoveResizeWindow(WWindow * wwin)
                                } else {
                                        drawTransparentFrame(wwin, src_x + 
off_x, src_y + off_y, ww, wh);
                                }
-                       };
+                       }
 
                        if (ctrlmode) {
                                showGeometry(wwin, src_x + off_x, src_y + 
off_y, src_x + off_x + ww,
diff --git a/src/screen.h b/src/screen.h
index fc933f1..cc7538a 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -219,7 +219,6 @@ typedef struct _WScreen {
     int drawer_count;                  /* Nb of drawers that */
     struct WDock *attracting_drawer;   /* The drawer that auto-attracts icons, 
or NULL */
 
-    int keymove_tick;
     struct RContext *rcontext;        /* wrlib context */
 
     WMScreen *wmscreen;                       /* for widget library */

http://repo.or.cz/w/wmaker-crm.git/commit/9f957543fe571a948948b49741f02e9c191decbf

commit 9f957543fe571a948948b49741f02e9c191decbf
Author: Rodolfo García Peñas (kix) <[email protected]>
Date:   Mon Oct 7 00:12:10 2013 +0200

    Removed unused variable wapp_list
    
    The variable wapp_list is never set, then the comparison with
    wapp is only true if wapp is NULL. wapp can not be NULL in the
    function wApplicationDestroy() because is tested previously.
    
    Signed-off-by: Rodolfo García Peñas (kix) <[email protected]>

diff --git a/src/application.c b/src/application.c
index a5063ba..fe8fe6e 100644
--- a/src/application.c
+++ b/src/application.c
@@ -143,10 +143,9 @@ WApplication *wApplicationCreate(WWindow * wwin)
        return wapp;
 }
 
-void wApplicationDestroy(WApplication * wapp)
+void wApplicationDestroy(WApplication *wapp)
 {
        WWindow *wwin;
-       WScreen *scr;
 
        if (!wapp)
                return;
@@ -166,18 +165,10 @@ void wApplicationDestroy(WApplication * wapp)
                return;
        }
 
-       scr = wapp->main_window_desc->screen_ptr;
-
-       if (wapp == scr->wapp_list) {
-               if (wapp->next)
-                       wapp->next->prev = NULL;
-               scr->wapp_list = wapp->next;
-       } else {
-               if (wapp->next)
-                       wapp->next->prev = wapp->prev;
-               if (wapp->prev)
-                       wapp->prev->next = wapp->next;
-       }
+       if (wapp->next)
+               wapp->next->prev = wapp->prev;
+       if (wapp->prev)
+               wapp->prev->next = wapp->next;
 
        XDeleteContext(dpy, wapp->main_window, w_global.context.app_win);
        wAppMenuDestroy(wapp->menu);
diff --git a/src/screen.h b/src/screen.h
index ea1edcc..fc933f1 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -107,8 +107,6 @@ typedef struct _WScreen {
 
     WMArray *fakeGroupLeaders;         /* list of fake window group ids */
 
-    struct WApplication *wapp_list;    /* list of all aplications */
-
     WMBag *stacking_list;             /* bag of lists of windows
                                         * in stacking order.
                                         * Indexed by window level

-----------------------------------------------------------------------

Summary of changes:
 src/application.c |   19 +++++--------------
 src/moveres.c     |    8 ++------
 src/screen.h      |    3 ---
 3 files changed, 7 insertions(+), 23 deletions(-)


repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
-- 
wmaker-crm.git ("The Window Maker window manager")


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

Reply via email to