mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 06:38:05 +01:00
added some new functions
This commit is contained in:
@@ -25,6 +25,24 @@
|
||||
extern struct W_Application WMApplication;
|
||||
|
||||
|
||||
void
|
||||
WMSetApplicationIconWindow(WMScreen *scr, Window window)
|
||||
{
|
||||
scr->applicationIconWindow = window;
|
||||
|
||||
if (scr->groupLeader) {
|
||||
XWMHints *hints;
|
||||
|
||||
hints = XGetWMHints(scr->display, scr->groupLeader);
|
||||
hints->flags |= IconWindowHint;
|
||||
hints->icon_window = window;
|
||||
|
||||
XSetWMHints(scr->display, scr->groupLeader, hints);
|
||||
XFree(hints);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WMSetApplicationIconImage(WMScreen *scr, WMPixmap *icon)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user