void InputWindowShow(InputWindow* inputWindow) { if (!WindowIsVisable(inputWindow->parent.owner->dpy, inputWindow->parent.wId)) InputWindowMoveWindow(&inputWindow->parent); XMapRaised(inputWindow->parent.owner->dpy, inputWindow->parent.wId); FcitxXlibWindowPaint(&inputWindow->parent); }
void InputWindowReload(void* arg, boolean enabled) { InputWindow* inputWindow = (InputWindow*) arg; boolean visable = WindowIsVisable(inputWindow->parent.owner->dpy, inputWindow->parent.wId); FcitxXlibWindowDestroy(&inputWindow->parent); InputWindowInit(inputWindow); if (visable) InputWindowShow(inputWindow); }
void XlibMenuReload(void* arg, boolean enabled) { FcitxXlibWindow* window = arg; FcitxClassicUI* classicui = window->owner; XlibMenu* menu = (XlibMenu*) arg; boolean visable = WindowIsVisable(classicui->dpy, window->wId); FcitxXlibWindowDestroy(window); XlibMenuInit(menu); if (visable) XMapWindow(classicui->dpy, window->wId); }
void ReloadXlibMenu(void* arg, boolean enabled) { XlibMenu* menu = (XlibMenu*) arg; boolean visable = WindowIsVisable(menu->owner->dpy, menu->menuWindow); XFreePixmap(menu->owner->dpy, menu->pixmap); XDestroyWindow(menu->owner->dpy, menu->menuWindow); XftDrawDestroy(menu->xftDraw); menu->pixmap = None; menu->menuWindow = None; InitXlibMenu(menu); if (visable) XMapWindow(menu->owner->dpy, menu->menuWindow); }
void ReloadXlibMenu(void* arg, boolean enabled) { XlibMenu* menu = (XlibMenu*) arg; boolean visable = WindowIsVisable(menu->owner->dpy, menu->menuWindow); cairo_surface_destroy(menu->menu_cs); cairo_surface_destroy(menu->menu_x_cs); XDestroyWindow(menu->owner->dpy, menu->menuWindow); menu->menu_cs = NULL; menu->menu_x_cs = NULL; menu->menuWindow = None; InitXlibMenu(menu); if (visable) XMapWindow(menu->owner->dpy, menu->menuWindow); }