| 152 | |
| 153 | #if 0 |
| 154 | static |
| 155 | void wxWMspecSetState(Display *dd, Window w, int operation, Atom state) |
| 156 | { |
| 157 | Atom atom= XInternAtom (dd, "_NET_WM_STATE", False); |
| 158 | assert (atom!= BadAlloc); |
| 159 | assert (atom!= BadAtom); |
| 160 | assert (atom!= BadValue); |
| 161 | |
| 162 | int screen = DefaultScreen (dd); |
| 163 | Window rootWin= RootWindow (dd, screen); |
| 164 | XEvent xev; |
| 165 | |
| 166 | assert(IsMappedWindow(dd, w)); |
| 167 | |
| 168 | xev.type = ClientMessage; |
| 169 | xev.xclient.type = ClientMessage; |
| 170 | xev.xclient.serial = 0; |
| 171 | xev.xclient.send_event = True; |
| 172 | xev.xclient.display = dd; |
| 173 | xev.xclient.window = w; |
| 174 | xev.xclient.message_type = atom; |
| 175 | xev.xclient.format = 32; |
| 176 | xev.xclient.data.l[0] = operation; |
| 177 | xev.xclient.data.l[1] = state; |
| 178 | xev.xclient.data.l[2] = None; |
| 179 | |
| 180 | XSendEvent(dd, rootWin, False, SubstructureRedirectMask | SubstructureNotifyMask, &xev); |
| 181 | } |
| 182 | #endif |
| 183 | #endif |
| 184 |
nothing calls this directly
no test coverage detected