devilhorns pushed a commit to branch master.
commit 2dce6d935f0b80624743c0e1382b924f2c31e137
Author: Chris Michael <[email protected]>
Date: Fri Aug 16 13:03:16 2013 +0100
Remove button increments/decrements from interface callbacks as these
are done in the mouse up/down callbacks.
NB: Thanks for the report Mike ;)
Signed-off-by: Chris Michael <[email protected]>
---
src/modules/wl_desktop_shell/e_mod_main.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/modules/wl_desktop_shell/e_mod_main.c
b/src/modules/wl_desktop_shell/e_mod_main.c
index fc19ffc..81af709 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -2076,11 +2076,6 @@ _e_wl_shell_move_grab_cb_button(struct wl_pointer_grab
*grab, unsigned int times
/* try to get the pointer */
if (!(ptr = grab->pointer)) return;
- if (state == WL_POINTER_BUTTON_STATE_RELEASED)
- ptr->button_count--;
- else
- ptr->button_count++;
-
if (ptr->button_count == 1)
ptr->grab_serial = wl_display_get_serial(_e_wl_comp->wl.display);
@@ -2160,11 +2155,6 @@ _e_wl_shell_resize_grab_cb_button(struct wl_pointer_grab
*grab, unsigned int tim
/* try to get the pointer */
if (!(ptr = grab->pointer)) return;
- if (state == WL_POINTER_BUTTON_STATE_RELEASED)
- ptr->button_count--;
- else
- ptr->button_count++;
-
if (ptr->button_count == 1)
ptr->grab_serial = wl_display_get_serial(_e_wl_comp->wl.display);
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk