if (!warp_client->lock_user_shade)
e_client_unshade(warp_client, warp_client->shade_dir);
}
-
+
if (!warp_client->lock_focus_out)
{
if (e_config->focus_policy_ext != E_FOCUS_EXT_TOP_STACK)
ec->resize_mode = E_POINTER_RESIZE_NONE;
_e_client_action_input_win_del();
- /* If this border was maximized, we need to unset Maximized state or
- * on restart, E still thinks it's maximized */
- if (ec->maximized != E_MAXIMIZE_NONE)
- e_hints_window_maximized_set(ec, ec->maximized & E_MAXIMIZE_HORIZONTAL,
- ec->maximized & E_MAXIMIZE_VERTICAL);
-
_e_client_hook_call(E_CLIENT_HOOK_RESIZE_END, ec);
if (ec->transformed)
}
/* Recreate state */
- if (!ec->override)
- e_hints_window_init(ec);
if (ec->e.state.centered)
{
tx = zx + (zw - ec->w) / 2;
e_client_comp_hidden_set(ec, (!desk->visible) && (!ec->sticky));
e_client_zone_set(ec, desk->zone);
- e_hints_window_desktop_set(ec);
-
if (old_desk)
{
ev = E_NEW(E_Event_Client_Desk_Set, 1);
if (!e_object_is_del(E_OBJECT(ec_unfocus)))
_e_client_hook_call(E_CLIENT_HOOK_FOCUS_UNSET, ec_unfocus);
/* only send event here if we're not being deleted */
- if ((!e_object_is_del(E_OBJECT(ec_unfocus))) &&
+ if ((!e_object_is_del(E_OBJECT(ec_unfocus))) &&
(e_object_ref_get(E_OBJECT(ec_unfocus)) > 0))
{
_e_client_event_simple(ec_unfocus, E_EVENT_CLIENT_FOCUS_OUT);
if (!focus_track_frozen)
e_client_focus_latest_set(ec);
- e_hints_active_window_set(ec);
_e_client_event_simple(ec, E_EVENT_CLIENT_FOCUS_IN);
if (ec->sticky && ec->desk && (!ec->desk->visible))
e_client_desk_set(ec, e_desk_current_get(ec->zone));
if (!e_util_strcmp("borderless", ec->bordername)) return;
if (!e_comp_object_frame_allowed(ec->frame)) return;
- e_hints_window_shaded_set(ec, 1);
- e_hints_window_shade_direction_set(ec, dir);
ec->take_focus = 0;
ec->shading = 1;
ec->shade_dir = dir;
if ((!ec->shaded) || (ec->shading))
return;
- e_hints_window_shaded_set(ec, 0);
- e_hints_window_shade_direction_set(ec, dir);
ec->shading = 1;
ec->shade_dir = 0;
}
ec->saved.zone = ec->zone->num;
- e_hints_window_size_set(ec);
_e_client_maximize(ec, max);
ec->maximized = max;
ec->changes.need_unmaximize = 0;
- if ((ec->maximized & E_MAXIMIZE_DIRECTION) > E_MAXIMIZE_BOTH)
- /* left/right maximize */
- e_hints_window_maximized_set(ec, 0,
- ((ec->maximized & E_MAXIMIZE_DIRECTION) == E_MAXIMIZE_LEFT) ||
- ((ec->maximized & E_MAXIMIZE_DIRECTION) == E_MAXIMIZE_RIGHT));
- else
- e_hints_window_maximized_set(ec, ec->maximized & E_MAXIMIZE_HORIZONTAL,
- ec->maximized & E_MAXIMIZE_VERTICAL);
evas_object_smart_callback_call(ec->frame, "maximize_done", NULL);
}
ec->saved.y + ec->zone->y,
ec->saved.w, ec->saved.h);
ec->saved.x = ec->saved.y = ec->saved.w = ec->saved.h = 0;
- e_hints_window_size_unset(ec);
}
else
{
e_client_pos_set(ec, x, y);
e_policy_visibility_client_defer_move(ec);
}
- e_hints_window_size_unset(ec);
}
else
{
e_client_pos_set(ec, x, y);
e_policy_visibility_client_defer_move(ec);
}
-
- e_hints_window_size_set(ec);
}
if (vert)
ec->saved.h = ec->saved.y = 0;
if (horiz)
ec->saved.w = ec->saved.x = 0;
}
- e_hints_window_maximized_set(ec, ec->maximized & E_MAXIMIZE_HORIZONTAL,
- ec->maximized & E_MAXIMIZE_VERTICAL);
}
evas_object_smart_callback_call(ec->frame, "unmaximize_done", NULL);
ec->changes.need_unmaximize = 0;
ec->saved.w = w;
ec->saved.h = h;
}
- e_hints_window_size_set(ec);
ec->saved.layer = ec->layer;
e_client_layer_set(ec, E_LAYER_CLIENT_FULLSCREEN);
ec->fullscreen = 1;
- if ((eina_list_count(e_comp->zones) > 1) ||
+ if ((eina_list_count(e_comp->zones) > 1) ||
(policy == E_FULLSCREEN_RESIZE))
{
e_client_frame_geometry_set(ec, ec->zone->x, ec->zone->y, ec->zone->w, ec->zone->h);
evas_object_smart_callback_call(ec->frame, "fullscreen_zoom", NULL);
}
- e_hints_window_fullscreen_set(ec, 1);
- e_hints_window_size_unset(ec);
if (!e_client_util_ignored_get(ec))
_e_client_frame_update(ec);
ec->fullscreen_policy = policy;
e_client_layer_set(ec, ec->saved.layer);
- e_hints_window_fullscreen_set(ec, 0);
_e_client_event_simple(ec, E_EVENT_CLIENT_UNFULLSCREEN);
if (!ec->desk->fullscreen_clients)
ec->desk = NULL;
ec->sticky = 1;
ec->hidden = 0;
- e_hints_window_sticky_set(ec, 1);
e_client_desk_set(ec, desk);
evas_object_smart_callback_call(ec->frame, "stick", NULL);
EINA_LIST_FREE(list, child)
{
child->sticky = 1;
- e_hints_window_sticky_set(child, 1);
evas_object_show(ec->frame);
}
}
desk = e_desk_current_get(ec->zone);
ec->desk = NULL;
ec->hidden = ec->sticky = 0;
- e_hints_window_sticky_set(ec, 0);
e_client_desk_set(ec, desk);
evas_object_smart_callback_call(ec->frame, "unstick", NULL);
EINA_LIST_FREE(list, child)
{
child->sticky = 0;
- e_hints_window_sticky_set(child, 0);
}
}
static Eina_List *aux_hints_supported = NULL;
-EINTERN void
-e_hints_active_window_set(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_init(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_state_set(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_allowed_action_set(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_type_set(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_type_get(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_state_get(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_allowed_action_update(E_Client *ec, int action)
-{
- (void)ec;
- (void)action;
-}
-
-EINTERN void
-e_hints_allowed_action_get(E_Client *ec)
-{
- (void)ec;
-}
-
E_API void
e_hints_window_visible_set(E_Client *ec)
{
}
EINTERN void
-e_hints_window_iconic_set(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_hidden_set(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_shaded_set(E_Client *ec, int on)
-{
- (void)ec;
- (void)on;
-}
-
-EINTERN void
-e_hints_window_shade_direction_set(E_Client *ec, E_Direction dir)
-{
- (void)ec;
- (void)dir;
-}
-
-EINTERN E_Direction
-e_hints_window_shade_direction_get(E_Client *ec)
-{
- (void)ec;
- return E_DIRECTION_UP;
-}
-
-EINTERN void
-e_hints_window_size_set(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_size_unset(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN int
-e_hints_window_size_get(E_Client *ec)
-{
- (void)ec;
- return 1;
-}
-
-EINTERN void
-e_hints_window_maximized_set(E_Client *ec, int horizontal, int vertical)
-{
- (void)ec;
- (void)horizontal;
- (void)vertical;
-}
-
-EINTERN void
-e_hints_window_fullscreen_set(E_Client *ec, int on)
-{
- (void)ec;
- (void)on;
-}
-
-EINTERN void
-e_hints_window_sticky_set(E_Client *ec, int on)
-{
- (void)ec;
- (void)on;
-}
-
-EINTERN void
-e_hints_window_stacking_set(E_Client *ec, E_Stacking stacking)
-{
- (void)ec;
- (void)stacking;
-}
-
-EINTERN void
-e_hints_window_desktop_set(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_e_state_get(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_e_state_set(E_Client *ec EINA_UNUSED)
-{
- /* TODO */
-}
-
-EINTERN void
-e_hints_window_e_opaque_get(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_virtual_keyboard_state_get(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
-e_hints_window_virtual_keyboard_get(E_Client *ec)
-{
- (void)ec;
-}
-
-EINTERN void
e_hints_scale_update(void)
{
Eina_List *l;
#ifndef E_HINTS_H
#define E_HINTS_H
-EINTERN void e_hints_active_window_set(E_Client *ec);
-
-EINTERN void e_hints_window_init(E_Client *ec);
-EINTERN void e_hints_window_state_set(E_Client *ec);
-EINTERN void e_hints_window_state_get(E_Client *ec);
-EINTERN void e_hints_window_type_set(E_Client *ec);
-EINTERN void e_hints_window_type_get(E_Client *ec);
-
E_API void e_hints_window_visible_set(E_Client *ec);
-EINTERN void e_hints_window_iconic_set(E_Client *ec);
-EINTERN void e_hints_window_hidden_set(E_Client *ec);
-
-EINTERN void e_hints_window_shade_direction_set(E_Client *ec, E_Direction dir);
-EINTERN E_Direction e_hints_window_shade_direction_get(E_Client *ec);
-
-EINTERN void e_hints_window_size_set(E_Client *ec);
-EINTERN void e_hints_window_size_unset(E_Client *ec);
-EINTERN int e_hints_window_size_get(E_Client *ec);
-
-EINTERN void e_hints_window_shaded_set(E_Client *ec, int on);
-EINTERN void e_hints_window_maximized_set(E_Client *ec, int horizontal, int vertical);
-EINTERN void e_hints_window_fullscreen_set(E_Client *ec, int on);
-EINTERN void e_hints_window_sticky_set(E_Client *ec, int on);
-EINTERN void e_hints_window_stacking_set(E_Client *ec, E_Stacking stacking);
-EINTERN void e_hints_window_desktop_set(E_Client *ec);
-
-EINTERN void e_hints_window_e_state_set(E_Client *ec);
-EINTERN void e_hints_window_e_state_get(E_Client *ec);
-
-EINTERN void e_hints_window_e_opaque_get(E_Client *ec);
-
-EINTERN void e_hints_window_virtual_keyboard_state_get(E_Client *ec);
-EINTERN void e_hints_window_virtual_keyboard_get(E_Client *ec);
EINTERN void e_hints_scale_update(void);
E_API const char * e_hints_aux_hint_value_get(E_Client *ec, const char *name);
EINTERN Eina_Bool e_hints_aux_hint_add_with_pixmap(E_Pixmap *cp, int32_t id, const char *name, const char *val);
-E_API Eina_Bool e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val);
-E_API Eina_Bool e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id);
-E_API const char * e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name);
+EINTERN Eina_Bool e_hints_aux_hint_change_with_pixmap(E_Pixmap *cp, int32_t id, const char *val);
+EINTERN Eina_Bool e_hints_aux_hint_del_with_pixmap(E_Pixmap *cp, int32_t id);
+EINTERN const char * e_hints_aux_hint_value_get_with_pixmap(E_Pixmap *cp, const char *name);
#endif
#endif