Working on pinentry, gpg passphrase dialog and other, I am having issues with it centering properly. At first it was not centering on all screens. It would be centered on the top left corner, which offsets the window to the bottom right vs being dead center of screen.
Changing order of call to elm_win_center on 1 of 4 screens did center the dialog/window. On the 2nd 0:1 display of a dual display system. On 0:0 it is offset. On my laptop using 1 display at a time. It is offset on both external and internal. Even if I unplug the 2nd display and use just the internal. It still does not center on my laptop. The main code is basic
win = elm_win_util_dialog_add(NULL,"pinentry","enter pin"); .... elm_win_resize_object_add(win,obj); evas_object_show(win); elm_win_center(win,EINA_TRUE,EINA_TRUE);
Full code can be seen in in the repo on github