discomfitor pushed a commit to branch master.

commit c8c21fcc0f4d9b8b6549c3b7e6c2f5841023fe48
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Jul 2 08:34:25 2013 +0100

    apply screen limit policy to border configure requests
---
 src/bin/e_border.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index cce41ad..a709fc7 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -5257,7 +5257,15 @@ _e_border_cb_window_configure_request(void *data  
__UNUSED__,
                        bd->saved.y = y - bd->zone->y;
                     }
                   else
-                    e_border_move(bd, x, y);
+                    {
+                       if ((e_config->screen_limits != 
E_SCREEN_LIMITS_COMPLETELY) && bd->zone &&
+                           (!E_INSIDE(x, y, 0, 0, bd->zone->w - 5, bd->zone->h 
- 5)) &&
+                           (!E_INSIDE(x, y, 0 - bd->w + 5, 0 - bd->h + 5, 
bd->zone->w - 5, bd->zone->h - 5))
+                          )
+                         _e_border_move_lost_window_to_center(bd);
+                       else
+                         e_border_move(bd, x, y);
+                    }
                }
           }
      }

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to