瀏覽代碼

Merge pull request #262 from computerquip/master

No need to subtract window position from translated coordinates
Jim 11 年之前
父節點
當前提交
883d05007f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/linux-capture/xcompcap-main.cpp

+ 1 - 1
plugins/linux-capture/xcompcap-main.cpp

@@ -306,7 +306,7 @@ void XCompcapMain::updateSettings(obs_data_t settings)
 
 
 		XTranslateCoordinates(xdisp, p->win, attr.root, 0, 0, &x, &y,
 		XTranslateCoordinates(xdisp, p->win, attr.root, 0, 0, &x, &y,
 				&child);
 				&child);
-		xcursor_offset(p->cursor, x - attr.x, y - attr.y);
+		xcursor_offset(p->cursor, x, y);
 	}
 	}
 
 
 	gs_color_format cf = GS_RGBA;
 	gs_color_format cf = GS_RGBA;