summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-04-10 18:45:49 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-04-10 18:45:49 -0400
commitff605f11f122e643ea25e9c6c1cd885b7abd4ef6 (patch)
treed04092cd9141592c9233822ecc76684f095cdfd7
parent90fd3462fc604a66c526dcd0aa1bb8e40906ef9b (diff)
move moveresize hooks to jobs to not interfere with focus changes
fix T1065
-rw-r--r--src/moveresize.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/moveresize.c b/src/moveresize.c
index c8a73b1..3898ff6 100644
--- a/src/moveresize.c
+++ b/src/moveresize.c
@@ -262,8 +262,9 @@ pulse(void *d EINA_UNUSED, Efx_Map_Data *emd EINA_UNUSED, Evas_Object *obj)
262} 262}
263 263
264static void 264static void
265move_begin(void *d EINA_UNUSED, E_Client *ec) 265move_start(E_Client *ec)
266{ 266{
267 if (ec != e_client_action_get()) return;
267 clear_all(); 268 clear_all();
268 client = ec; 269 client = ec;
269 e_comp_shape_queue_block(ec->comp, 1); 270 e_comp_shape_queue_block(ec->comp, 1);
@@ -287,6 +288,12 @@ move_begin(void *d EINA_UNUSED, E_Client *ec)
287} 288}
288 289
289static void 290static void
291move_begin(void *d EINA_UNUSED, E_Client *ec)
292{
293 ecore_job_add((Ecore_Cb)move_start, ec);
294}
295
296static void
290move_update(void *d EINA_UNUSED, E_Client *ec) 297move_update(void *d EINA_UNUSED, E_Client *ec)
291{ 298{
292 move_x_update(ec); 299 move_x_update(ec);
@@ -308,10 +315,11 @@ move_end(void *d EINA_UNUSED, E_Client *ec EINA_UNUSED)
308} 315}
309 316
310static void 317static void
311resize_begin(void *d EINA_UNUSED, E_Client *ec) 318resize_start(E_Client *ec)
312{ 319{
313 unsigned int x; 320 unsigned int x;
314 321
322 if (ec != e_client_action_get()) return;
315 clear_all(); 323 clear_all();
316 client = ec; 324 client = ec;
317 e_comp_shape_queue_block(ec->comp, 1); 325 e_comp_shape_queue_block(ec->comp, 1);
@@ -362,6 +370,12 @@ resize_begin(void *d EINA_UNUSED, E_Client *ec)
362} 370}
363 371
364static void 372static void
373resize_begin(void *d EINA_UNUSED, E_Client *ec)
374{
375 ecore_job_add((Ecore_Cb)resize_start, ec);
376}
377
378static void
365resize_update(void *d EINA_UNUSED, E_Client *ec) 379resize_update(void *d EINA_UNUSED, E_Client *ec)
366{ 380{
367 resize_text_update(ec); 381 resize_text_update(ec);