Browse Source

give slop's window a class

unek 10 years ago
parent
commit
f495df3ca4
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      x.cpp

+ 5
- 0
x.cpp View File

@@ -277,6 +277,11 @@ slop::Rectangle::Rectangle( int x, int y, int width, int height, int border, int
277 277
     rect.width = m_width;
278 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 285
     XShapeCombineRectangles( xengine->m_display, m_window, ShapeBounding, 0, 0, &rect, 1, ShapeSubtract, 0);
281 286
     XMapWindow( xengine->m_display, m_window );
282 287
 }