… | |
… | |
1474 | CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect, |
1474 | CWColormap | CWBackPixel | CWBorderPixel | CWOverrideRedirect, |
1475 | &attributes); |
1475 | &attributes); |
1476 | |
1476 | |
1477 | this->parent = top; |
1477 | this->parent = top; |
1478 | |
1478 | |
1479 | old_width = szHint.width; |
|
|
1480 | old_height = szHint.height; |
|
|
1481 | |
|
|
1482 | set_title (rs [Rs_title]); |
1479 | set_title (rs [Rs_title]); |
1483 | set_icon_name (rs [Rs_iconName]); |
1480 | set_icon_name (rs [Rs_iconName]); |
1484 | |
1481 | |
1485 | classHint.res_name = (char *)rs[Rs_name]; |
1482 | classHint.res_name = (char *)rs[Rs_name]; |
1486 | classHint.res_class = (char *)RESCLASS; |
1483 | classHint.res_class = (char *)RESCLASS; |
… | |
… | |
1719 | int fd; |
1716 | int fd; |
1720 | |
1717 | |
1721 | fd = open (CONSOLE, O_WRONLY, 0); |
1718 | fd = open (CONSOLE, O_WRONLY, 0); |
1722 | if (fd >= 0) |
1719 | if (fd >= 0) |
1723 | { |
1720 | { |
1724 | ioctl (fd, SRIOCSREDIR, NULL); |
1721 | ioctl (fd, SRIOCSREDIR, STDIN_FILENO); |
1725 | close (fd); |
1722 | close (fd); |
1726 | } |
1723 | } |
1727 | #endif /* SRIOCSREDIR */ |
1724 | #endif /* SRIOCSREDIR */ |
1728 | } |
1725 | } |
1729 | |
1726 | |