| | 260 | if (ret->full_screen) { |
|---|
| | 261 | Atom prop_fs = XInternAtom(disp, "_NET_WM_STATE_FULLSCREEN", False); |
|---|
| | 262 | Atom prop_state = XInternAtom(disp, "_NET_WM_STATE", False); |
|---|
| | 263 | |
|---|
| | 264 | memset(&ev, 0, sizeof(ev)); |
|---|
| | 265 | ev.xclient.type = ClientMessage; |
|---|
| | 266 | ev.xclient.message_type = prop_state; |
|---|
| | 267 | ev.xclient.display = disp; |
|---|
| | 268 | ev.xclient.window = ret->win; |
|---|
| | 269 | ev.xclient.format = 32; |
|---|
| | 270 | ev.xclient.data.l[0] = (ret->full_screen ? 1 : 0); |
|---|
| | 271 | ev.xclient.data.l[1] = prop_fs; |
|---|
| | 272 | |
|---|
| | 273 | XChangeProperty(disp, ret->win, prop_state, XA_ATOM, 32, |
|---|
| | 274 | PropModeReplace, &prop_fs, 1); |
|---|
| | 275 | } |
|---|