X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fvdevicex11.C;h=c0ca4b08357df010a1d85b04532b38ede2ece028;hb=5e3715ec449272335bab3419bf21ed4cd6d4bcbf;hp=793047ac184c065e6a053f2a76cff5bec546af71;hpb=6bd49ce1b213869a304386c48d43324d7f641248;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/vdevicex11.C b/cinelerra-5.1/cinelerra/vdevicex11.C index 793047ac..c0ca4b08 100644 --- a/cinelerra-5.1/cinelerra/vdevicex11.C +++ b/cinelerra-5.1/cinelerra/vdevicex11.C @@ -95,31 +95,28 @@ int VDeviceX11::open_input() // create overlay device->mwindow->gui->lock_window("VDeviceX11::close_all"); - screencap_border[0] = new BC_Popup(device->mwindow->gui, + screencap_border[0] = new BC_Popup(device->mwindow->gui, device->input_x - SCREENCAP_PIXELS, device->input_y - SCREENCAP_PIXELS, device->in_config->w + SCREENCAP_PIXELS * 2, SCREENCAP_PIXELS, SCREENCAP_COLOR, 1); - screencap_border[1] = new BC_Popup(device->mwindow->gui, + screencap_border[1] = new BC_Popup(device->mwindow->gui, device->input_x - SCREENCAP_PIXELS, device->input_y, SCREENCAP_PIXELS, device->in_config->h, SCREENCAP_COLOR, 1); - screencap_border[2] = new BC_Popup(device->mwindow->gui, + screencap_border[2] = new BC_Popup(device->mwindow->gui, device->input_x - SCREENCAP_PIXELS, device->input_y + device->in_config->h, device->in_config->w + SCREENCAP_PIXELS * 2, SCREENCAP_PIXELS, SCREENCAP_COLOR, 1); - screencap_border[3] = new BC_Popup(device->mwindow->gui, + screencap_border[3] = new BC_Popup(device->mwindow->gui, device->input_x + device->in_config->w, device->input_y, SCREENCAP_PIXELS, device->in_config->h, SCREENCAP_COLOR, 1); +usleep(500000); // avoids a bug in gnome-shell 2017/10/19 - for( int i=0; iset_bg_color(SCREENCAP_COLOR); - box->clear_box(0, 0, box->get_w(), box->get_h()); - box->flash(0); - box->show_window(); - } + for( int i=0; ishow_window(0); + device->mwindow->gui->flush(); device->mwindow->gui->unlock_window(); return 0;