XGetWindowProperty返回BadWindow

时间:2017-04-17 06:57:21

标签: c x11 xlib

我从public DataTable ConvertCsvStringToDataTable(bool isFilePath,string CSVContent) { //CSVFilePathName = @"C:\test.csv"; string[] Lines; if (isFilePath) { Lines = File.ReadAllLines(CSVContent); } else { Lines = CSVContent.Split("\r\n".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); } string[] Fields; Fields = Lines[0].Split(new char[] { ',' }); int Cols = Fields.GetLength(0); DataTable dt = new DataTable(); //1st row must be column names; force lower case to ensure matching later on. for (int i = 0; i < Cols; i++) dt.Columns.Add(Fields[i].ToLower(), typeof(string)); DataRow Row; for (int i = 1; i < Lines.GetLength(0); i++) { Fields = Lines[i].Split(new char[] { ',' }); Row = dt.NewRow(); for (int f = 0; f < Cols; f++) Row[f] = Fields[f]; dt.Rows.Add(Row); } return dt; } 获取焦点窗口并将其输入XGetInputFocus()以检查窗口是否包含XGetWindowProperty() Atom

但当我关闭全屏窗口时,如团队要塞2等游戏或像mpv _NET_WM_STATE_FULLSCREEN这样的媒体播放器失败并出现错误

X请求失败的错误:BadWindow(窗口参数无效)。

XGetWindowProperty

0 个答案:

没有答案