浏览代码

Merge pull request #3 from unek/master

give slop's window a class
Dalton Nell 11 年前
父节点
当前提交
54b1b7142a
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      x.cpp

+ 5
- 0
x.cpp 查看文件

277
     rect.width = m_width;
277
     rect.width = m_width;
278
     rect.height = m_height;
278
     rect.height = m_height;
279
 
279
 
280
+    XClassHint classhints;
281
+    classhints.res_name = "slop";
282
+    classhints.res_class = "slop";
283
+    XSetClassHint( xengine->m_display, m_window, &classhints );
284
+
280
     XShapeCombineRectangles( xengine->m_display, m_window, ShapeBounding, 0, 0, &rect, 1, ShapeSubtract, 0);
285
     XShapeCombineRectangles( xengine->m_display, m_window, ShapeBounding, 0, 0, &rect, 1, ShapeSubtract, 0);
281
     XMapWindow( xengine->m_display, m_window );
286
     XMapWindow( xengine->m_display, m_window );
282
 }
287
 }