discomfitor pushed a commit to branch master.
commit f3643d5146c8d5ace83a034637b2df1f06f18835
Author: Mike Blumenkrantz <[email protected]>
Date: Thu Aug 22 11:32:20 2013 +0100
call window_resize action when beginning a netwm resize and set the
direction/gravity after; fixes gtk resize grips
---
src/bin/e_border.c | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index 3fe4da4..05c85e6 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -6104,10 +6104,17 @@ _e_border_cb_window_move_resize_request(void *data
__UNUSED__,
}
return ECORE_CALLBACK_PASS_ON;
}
+ bd->cur_mouse_action = e_action_find("window_resize");
+ if (bd->cur_mouse_action)
+ {
+ if ((!bd->cur_mouse_action->func.end_mouse) &&
+ (!bd->cur_mouse_action->func.end))
+ bd->cur_mouse_action = NULL;
+ }
+ if (!bd->cur_mouse_action) return ECORE_CALLBACK_RENEW;
- if (!_e_border_resize_begin(bd))
- return ECORE_CALLBACK_PASS_ON;
-
+ e_object_ref(E_OBJECT(bd->cur_mouse_action));
+ bd->cur_mouse_action->func.go(E_OBJECT(bd), NULL);
switch (e->direction)
{
case E_POINTER_RESIZE_TL:
@@ -6154,16 +6161,6 @@ _e_border_cb_window_move_resize_request(void *data
__UNUSED__,
return ECORE_CALLBACK_PASS_ON;
}
- bd->cur_mouse_action = e_action_find("window_resize");
- if (bd->cur_mouse_action)
- {
- if ((!bd->cur_mouse_action->func.end_mouse) &&
- (!bd->cur_mouse_action->func.end))
- bd->cur_mouse_action = NULL;
- }
- if (bd->cur_mouse_action)
- e_object_ref(E_OBJECT(bd->cur_mouse_action));
-
return ECORE_CALLBACK_PASS_ON;
}
--
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk