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  16045a6be4208efea61a2eaed572f71a5f7ca567 (commit)
       via  9740c024037b58a90de94c2b21d443e1ab7f6f4d (commit)
       via  89295b91fb72c1fbf32c99012499b633f2f91ca3 (commit)
      from  029846dd14dbefc56415253f498c3415e90f9fae (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/16045a6be4208efea61a2eaed572f71a5f7ca567

commit 16045a6be4208efea61a2eaed572f71a5f7ca567
Author: Christophe CURIS <[email protected]>
Date:   Sat Jul 19 18:50:45 2014 +0200

    Increment versions of libraries for next release due to public API Changes
    
    WRaster:
    - new function 'RShutdown'
    - removed flag 'optimize_for_speed' from RContext
    - new functions '...(operate_xxx)', '...(flip_image)'
    
    WUtil:
    - new function 'wutil_shutdown'
    - new macro 'wlengthof'
    
    WINGs:
    - new function 'WMReleaseApplication'
    - new function 'WMCreateScaledBlendedPixmapFromFile'
    
    (And maybe a few more I missed)
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/WINGs/WINGs/WINGs.h b/WINGs/WINGs/WINGs.h
index 63337508..037f2762 100644
--- a/WINGs/WINGs/WINGs.h
+++ b/WINGs/WINGs/WINGs.h
@@ -26,7 +26,7 @@
 #include <WINGs/WUtil.h>
 #include <X11/Xlib.h>
 
-#define WINGS_H_VERSION  20131115
+#define WINGS_H_VERSION  20140612
 
 
 #ifdef __cplusplus
diff --git a/configure.ac b/configure.ac
index 2b9fe6b9..4352e906 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,21 +40,21 @@ dnl 6. If any interfaces have been removed or changed since 
the last
 dnl public release, then set age to 0.
 dnl
 dnl libwraster
-WRASTER_CURRENT=4
-WRASTER_REVISION=1
-WRASTER_AGE=1
+WRASTER_CURRENT=5
+WRASTER_REVISION=0
+WRASTER_AGE=0
 WRASTER_VERSION=$WRASTER_CURRENT:$WRASTER_REVISION:$WRASTER_AGE
 AC_SUBST(WRASTER_VERSION)
 dnl
 dnl libWINGs
-WINGS_CURRENT=2
-WINGS_REVISION=1
+WINGS_CURRENT=3
+WINGS_REVISION=0
 WINGS_AGE=0
 WINGS_VERSION=$WINGS_CURRENT:$WINGS_REVISION:$WINGS_AGE
 AC_SUBST(WINGS_VERSION)
 dnl
 dnl libWUtil
-WUTIL_CURRENT=4
+WUTIL_CURRENT=5
 WUTIL_REVISION=0
 WUTIL_AGE=0
 WUTIL_VERSION=$WUTIL_CURRENT:$WUTIL_REVISION:$WUTIL_AGE
diff --git a/wrlib/wraster.h b/wrlib/wraster.h
index 992a8e95..12acdd00 100644
--- a/wrlib/wraster.h
+++ b/wrlib/wraster.h
@@ -41,7 +41,7 @@
 
 
 /* version of the header for the library */
-#define WRASTER_HEADER_VERSION 22
+#define WRASTER_HEADER_VERSION 23
 
 
 #include <X11/Xlib.h>

http://repo.or.cz/w/wmaker-crm.git/commit/9740c024037b58a90de94c2b21d443e1ab7f6f4d

commit 9740c024037b58a90de94c2b21d443e1ab7f6f4d
Author: Christophe CURIS <[email protected]>
Date:   Sat Jul 19 18:50:44 2014 +0200

    wrlib: re-introduce the optimize_for_speed flag for binary compatibility
    
    The commit #d1f9b801 removed it because the code behind it is actually
    useless, unfortunately removing the flag itself from the structure is
    breaking the compatibility of the API.
    
    To avoid problems, this patch re-introduces the flag in the structure, but
    not the code behind it so it is useless, and adds an attribute so that gcc
    will report its use as deprecated, to help application migration.
    
    Signed-off-by: Christophe CURIS <[email protected]>

diff --git a/wrlib/wraster.h b/wrlib/wraster.h
index c5655db1..992a8e95 100644
--- a/wrlib/wraster.h
+++ b/wrlib/wraster.h
@@ -52,6 +52,22 @@
 #endif
 
 
+/*
+ * Define some macro to provide attributes for the compiler
+ *
+ * These attributes help producing better code and/or detecting bugs, however 
not all compiler support them
+ * as they are not standard.
+ * Because we're a public API header, we can't count on autoconf to detect 
them for us, so we use that #if
+ * mechanism and define an internal macro appropriately. Please note that the 
macro are not considered being
+ * part of the public API.
+ */
+#if __GNUC__ >= 3
+#define __wrlib_deprecated(msg)  __attribute__ ((deprecated(msg)))
+#else
+#define __wrlib_deprecated(msg)
+#endif
+
+
 #ifdef __cplusplus
 extern "C" {
 #endif /* __cplusplus */
@@ -160,6 +176,9 @@ typedef struct RContext {
 
     struct {
         unsigned int use_shared_pixmap:1;
+        unsigned int optimize_for_speed:1
+            __wrlib_deprecated("Flag optimize_for_speed in RContext is not 
used anymore "
+                               "and will be removed in future version, please 
do not use");
     } flags;
 } RContext;
 
@@ -481,4 +500,10 @@ extern int RErrorCode;
 }
 #endif /* __cplusplus */
 
+/*
+ * The definitions below are done for internal use only
+ * We undef them so users of the library may not misuse them
+ */
+#undef __wrlib_deprecated
+
 #endif

http://repo.or.cz/w/wmaker-crm.git/commit/89295b91fb72c1fbf32c99012499b633f2f91ca3

commit 89295b91fb72c1fbf32c99012499b633f2f91ca3
Author: Ioan Moldovan <[email protected]>
Date:   Sat Jul 19 18:50:43 2014 +0200

    wmaker: improve the behaviour of window resizing by user
    
    The original behaviour was a bit frustrating because it used the first
    small mouse move to deduce the user's wished direction, but that is a bit
    imprecise.
    
    This patch divides the window in 9 rectangles:
     - 4 for corners, used for diagonal resizing
     - 4 for middles of sides, for resizing Up, Down, Left and Right
     - 1 useless in the middle of the the window, which falls back on diagonal
    resizing
    This leads to a more predictive behaviour.

diff --git a/src/moveres.c b/src/moveres.c
index 6754be2c..3d707d74 100644
--- a/src/moveres.c
+++ b/src/moveres.c
@@ -1806,13 +1806,23 @@ static int getResizeDirection(WWindow * wwin, int x, 
int y, int dx, int dy, int
 
        /* if not resizing through the resizebar */
        if (!(flags & RESIZEBAR)) {
+
                int xdir = (abs(x) < (wwin->client.width / 2)) ? LEFT : RIGHT;
                int ydir = (abs(y) < (wwin->client.height / 2)) ? UP : DOWN;
-               if (abs(dx) < 2 || abs(dy) < 2) {
-                       if (abs(dy) > abs(dx))
-                               xdir = 0;
-                       else
-                               ydir = 0;
+
+               /* How much resize space is allowed */
+               int spacew = abs(wwin->client.width / 3);
+               int spaceh = abs(wwin->client.height / 3);
+
+               /* Determine where x fits */
+               if ((abs(x) > wwin->client.width/2 - spacew/2) &&
+                   (abs(x) < wwin->client.width/2 + spacew/2)) {
+                       /* Resize vertically */
+                       xdir = 0;
+               } else if ((abs(y) > wwin->client.height/2 - spaceh/2) &&
+                          (abs(y) < wwin->client.height/2 + spaceh/2)) {
+                       /* Resize horizontally */
+                       ydir = 0;
                }
                return (xdir | ydir);
        }

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

Summary of changes:
 WINGs/WINGs/WINGs.h |    2 +-
 configure.ac        |   12 ++++++------
 src/moveres.c       |   20 +++++++++++++++-----
 wrlib/wraster.h     |   27 ++++++++++++++++++++++++++-
 4 files changed, 48 insertions(+), 13 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