mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +01:00
Remove NEWAPPICON #ifdefs
It wasn't defined anywhere and when I defined it, the compilation did not finish: appicon.c: In function drawCorner: appicon.c:206: error: WScreen has no member named focused_texture appicon.c:208: error: WScreen has no member named unfocused_texture appicon.c: At top level: appicon.c:214: error: conflicting types for drawCorner appicon.c:193: note: previous definition of drawCorner was here make[2]: *** [appicon.o] Fehler 1 make[1]: *** [all] Fehler 2 make: *** [all-recursive] Fehler 1 So let's simply remove those #ifdefs.
This commit is contained in:
@@ -189,28 +189,6 @@ void wAppIconDestroy(WAppIcon * aicon)
|
||||
wrelease(aicon);
|
||||
}
|
||||
|
||||
#ifdef NEWAPPICON
|
||||
static void drawCorner(WIcon * icon, WWindow * wwin, int active)
|
||||
{
|
||||
WScreen *scr = wwin->screen_ptr;
|
||||
XPoint points[3];
|
||||
GC gc;
|
||||
|
||||
points[0].x = 2;
|
||||
points[0].y = 2;
|
||||
points[1].x = 12;
|
||||
points[1].y = 2;
|
||||
points[2].x = 2;
|
||||
points[2].y = 12;
|
||||
if (active) {
|
||||
gc = scr->focused_texture->any.gc;
|
||||
} else {
|
||||
gc = scr->unfocused_texture->any.gc;
|
||||
}
|
||||
XFillPolygon(dpy, icon->core->window, gc, points, 3, Convex, CoordModeOrigin);
|
||||
}
|
||||
#endif /* NEWAPPICON */
|
||||
|
||||
static void drawCorner(WIcon * icon)
|
||||
{
|
||||
WScreen *scr = icon->core->screen_ptr;
|
||||
|
||||
Reference in New Issue
Block a user