mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Rename from _bounce() to _focus().
Fri May 26 14:55:07 2006 Søren Sandmann <sandmann@redhat.com> * src/c-window.c (meta_comp_window_run_focus): Rename from _bounce() to _focus().
This commit is contained in:
parent
db87abfb19
commit
83f82e5f28
@ -1,3 +1,8 @@
|
||||
Fri May 26 14:55:07 2006 Søren Sandmann <sandmann@redhat.com>
|
||||
|
||||
* src/c-window.c (meta_comp_window_run_focus): Rename from
|
||||
_bounce() to _focus().
|
||||
|
||||
2006-05-26 Elijah Newren <newren gmail com>
|
||||
|
||||
* src/display.c (meta_display_close): Fix a crash on exit/logout
|
||||
|
@ -150,7 +150,8 @@ has_counter (MetaCompWindow *comp_window)
|
||||
g_print ("increasing counter\n");
|
||||
ws_sync_counter_change (counter, 1);
|
||||
|
||||
g_print ("counter value %lld\n", ws_sync_counter_query_value (counter));
|
||||
g_print ("counter value %lld\n",
|
||||
ws_sync_counter_query_value (counter));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -766,18 +767,7 @@ meta_comp_window_explode (MetaCompWindow *comp_window,
|
||||
ExplodeInfo *info = g_new0 (ExplodeInfo, 1);
|
||||
|
||||
if (!cm_drawable_node_get_viewable (comp_window->node))
|
||||
{
|
||||
#if 0
|
||||
g_print ("%p wasn't even viewable to begin with\n", comp_window->node);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
#if 0
|
||||
g_print ("%p is viewable\n", comp_window->node);
|
||||
#endif
|
||||
}
|
||||
|
||||
comp_window->animation_in_progress = TRUE;
|
||||
|
||||
@ -999,16 +989,16 @@ typedef struct
|
||||
Model *model;
|
||||
MetaRectangle rect;
|
||||
gdouble last_time;
|
||||
} BounceInfo;
|
||||
} FocusInfo;
|
||||
|
||||
/* XXX HATE */
|
||||
extern void get_patch_points (Model *model, CmPoint points[4][4]);
|
||||
extern void compute_window_rect (MetaWindow *window, MetaRectangle *rect);
|
||||
|
||||
static gboolean
|
||||
update_bounce (gpointer data)
|
||||
update_focus (gpointer data)
|
||||
{
|
||||
BounceInfo *info = data;
|
||||
FocusInfo *info = data;
|
||||
CmDrawableNode *node = (CmDrawableNode *)info->window->node;
|
||||
gdouble elapsed = g_timer_elapsed (info->timer, NULL);
|
||||
int i;
|
||||
@ -1036,10 +1026,10 @@ update_bounce (gpointer data)
|
||||
}
|
||||
|
||||
void
|
||||
meta_comp_window_bounce (MetaCompWindow *comp_window,
|
||||
meta_comp_window_run_focus (MetaCompWindow *comp_window,
|
||||
MetaEffect *effect)
|
||||
{
|
||||
BounceInfo *info = g_new0 (BounceInfo, 1);
|
||||
FocusInfo *info = g_new0 (FocusInfo, 1);
|
||||
MetaWindow *meta_window =
|
||||
meta_display_lookup_x_window (comp_window->display,
|
||||
WS_RESOURCE_XID (comp_window->drawable));
|
||||
@ -1052,13 +1042,15 @@ meta_comp_window_bounce (MetaCompWindow *comp_window,
|
||||
compute_window_rect (meta_window, &info->rect);
|
||||
info->model = model_new (&info->rect, TRUE);
|
||||
|
||||
g_idle_add (update_bounce, info);
|
||||
g_idle_add (update_focus, info);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
#endif
|
||||
void
|
||||
meta_comp_window_run_restore (MetaCompWindow *comp_window,
|
||||
MetaEffect *effect)
|
||||
{
|
||||
meta_effect_end (effect);
|
||||
}
|
||||
|
||||
void
|
||||
meta_comp_window_freeze_stack (MetaCompWindow *comp_window)
|
||||
@ -1078,3 +1070,5 @@ meta_comp_window_stack_frozen (MetaCompWindow *comp_window)
|
||||
return comp_window->stack_freeze_count > 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -50,7 +50,7 @@ void meta_comp_window_shrink (MetaCompWindow *comp_window,
|
||||
MetaEffect *effect);
|
||||
void meta_comp_window_unshrink (MetaCompWindow *comp_window,
|
||||
MetaEffect *effect);
|
||||
void meta_comp_window_bounce (MetaCompWindow *comp_window,
|
||||
void meta_comp_window_focus (MetaCompWindow *comp_window,
|
||||
MetaEffect *effect);
|
||||
void meta_comp_window_restack (MetaCompWindow *comp_window,
|
||||
MetaCompWindow *above);
|
||||
@ -59,6 +59,8 @@ void meta_comp_window_thaw_stack (MetaCompWindow *comp_window);
|
||||
gboolean meta_comp_window_stack_frozen (MetaCompWindow *comp_window);
|
||||
void meta_comp_window_run_minimize (MetaCompWindow *window,
|
||||
MetaEffect *effect);
|
||||
void meta_comp_window_run_restore (MetaCompWindow *comp_window,
|
||||
MetaEffect *effect);
|
||||
|
||||
#if 0
|
||||
void meta_comp_window_set_explode (MetaCompWindow *comp_window,
|
||||
|
@ -130,13 +130,12 @@ do_effect (MetaEffect *effect,
|
||||
|
||||
meta_comp_window_run_minimize (window, effect);
|
||||
break;
|
||||
#if 0
|
||||
case META_EFFECT_RESTORE:
|
||||
meta_comp_window_unshrink (window, effect);
|
||||
meta_comp_window_run_restore (window, effect);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case META_EFFECT_FOCUS:
|
||||
meta_comp_window_bounce (window, effect);
|
||||
meta_comp_window_run_focus (window, effect);
|
||||
break;
|
||||
|
||||
case META_EFFECT_CLOSE:
|
||||
|
Loading…
Reference in New Issue
Block a user