| 1698 | // ---------------------------------------------------------------------------------------- |
| 1699 | |
| 1700 | void base_window:: |
| 1701 | close_window ( |
| 1702 | ) |
| 1703 | { |
| 1704 | using namespace gui_core_kernel_2_globals; |
| 1705 | auto_mutex M(wm); |
| 1706 | if (has_been_destroyed == false) |
| 1707 | { |
| 1708 | has_been_destroyed = true; |
| 1709 | |
| 1710 | x11_stuff.globals->window_table.destroy(x11_stuff.hwnd); |
| 1711 | |
| 1712 | XDestroyWindow(x11_stuff.globals->disp,x11_stuff.hwnd); |
| 1713 | x11_stuff.hwnd = 0; |
| 1714 | x11_stuff.globals->window_close_signaler.broadcast(); |
| 1715 | } |
| 1716 | } |
| 1717 | |
| 1718 | // ---------------------------------------------------------------------------------------- |
| 1719 | |