Exemple #1
0
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);
}
Exemple #2
0
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);
}
Exemple #3
0
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);
}
Exemple #4
0
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);
}
Exemple #5
0
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);
}