void xf_toggle_fullscreen(xfContext* xfc) { Pixmap contents = 0; WindowStateChangeEventArgs e; xf_lock_x11(xfc, TRUE); contents = XCreatePixmap(xfc->display, xfc->window->handle, xfc->width, xfc->height, xfc->depth); XCopyArea(xfc->display, xfc->primary, contents, xfc->gc, 0, 0, xfc->width, xfc->height, 0, 0); XDestroyWindow(xfc->display, xfc->window->handle); xfc->fullscreen = (xfc->fullscreen) ? FALSE : TRUE; xf_create_window(xfc); XCopyArea(xfc->display, contents, xfc->primary, xfc->gc, 0, 0, xfc->width, xfc->height, 0, 0); XFreePixmap(xfc->display, contents); xf_unlock_x11(xfc, TRUE); EventArgsInit(&e, "xfreerdp"); e.state = xfc->fullscreen ? FREERDP_WINDOW_STATE_FULLSCREEN : 0; PubSub_OnWindowStateChange(((rdpContext *) xfc)->pubSub, xfc, &e); }
void xf_rail_disable_remoteapp_mode(xfContext* xfc) { if (xfc->remote_app) { xfc->remote_app = FALSE; xf_create_window(xfc); } }
void xf_rail_disable_remoteapp_mode(xfInfo* xfi) { if (xfi->remote_app == true) { xfi->remote_app = false; xf_create_window(xfi); } }
void xf_rail_disable_remoteapp_mode(xfContext* xfc) { if (xfc->remote_app) { xfc->remote_app = FALSE; xf_DestroyDummyWindow(xfc, xfc->drawable); xf_create_window(xfc); } }
void xf_toggle_fullscreen(xfInfo* xfi) { Pixmap contents = 0; contents = XCreatePixmap(xfi->display, xfi->window->handle, xfi->width, xfi->height, xfi->depth); XCopyArea(xfi->display, xfi->primary, contents, xfi->gc, 0, 0, xfi->width, xfi->height, 0, 0); XDestroyWindow(xfi->display, xfi->window->handle); xfi->fullscreen = (xfi->fullscreen) ? FALSE : TRUE; xf_create_window(xfi); XCopyArea(xfi->display, contents, xfi->primary, xfi->gc, 0, 0, xfi->width, xfi->height, 0, 0); XFreePixmap(xfi->display, contents); }
void xf_toggle_fullscreen(xfInfo* xfi) { Pixmap contents = 0; xf_lock_x11(xfi, TRUE); contents = XCreatePixmap(xfi->display, xfi->window->handle, xfi->width, xfi->height, xfi->depth); XCopyArea(xfi->display, xfi->primary, contents, xfi->gc, 0, 0, xfi->width, xfi->height, 0, 0); XDestroyWindow(xfi->display, xfi->window->handle); xfi->fullscreen = (xfi->fullscreen) ? FALSE : TRUE; xf_create_window(xfi); XCopyArea(xfi->display, contents, xfi->primary, xfi->gc, 0, 0, xfi->width, xfi->height, 0, 0); XFreePixmap(xfi->display, contents); xf_unlock_x11(xfi, TRUE); IFCALL(xfi->client->OnWindowStateChange, xfi->instance, xfi->fullscreen ? FREERDP_WINDOW_STATE_FULLSCREEN : 0); }