warp pointer to center of internal dialog on show if dialog has focus

ensure that pointer-based focus policies do not experience unexpected focus
changes when a dialog changes from basic<->advanced

ref T1931
devs/bu5hm4n/sandbox_fix
Mike Blumenkrantz 5 years ago
parent ef3ee4b258
commit 8f26d33d11
  1. 5
      src/bin/e_dialog.c

@ -260,6 +260,11 @@ e_dialog_show(E_Dialog *dia)
if (!e_widget_focus_get(dia->box_object))
e_widget_focus_set(dia->box_object, 1);
{
E_Client *ec = e_win_client_get(dia->win);
if (ec->focused && (e_config->pointer_slide || (!e_client_focus_policy_click(ec))))
e_client_pointer_warp_to_center_now(ec);
}
}
/* local subsystem functions */

Loading…
Cancel
Save