rio: stub out _NET_WM_STATE_FULLSCREEN support

This commit is contained in:
Russ Cox 2008-07-09 14:30:30 -04:00
parent 427abd1ebd
commit 71f6d60fcf
3 changed files with 15 additions and 1 deletions

View file

@ -162,7 +162,8 @@ extern Atom wm_delete;
extern Atom wm_take_focus;
extern Atom wm_lose_focus;
extern Atom wm_colormaps;
extern Atom wm_state_fullscreen;
extern Atom wm_state;
/* client.c */
extern Client *clients;
extern Client *current;

View file

@ -337,6 +337,15 @@ clientmesg(XClientMessageEvent *e)
(int)e->format, (int)e->data.l[0], (int)e->window);
return;
}
if(e->message_type == wm_state){
// c = getclient(e->window, 0);
// if(e->format == 32 && e->data.l[1] == wm_state_fullscreen){
// }else
fprintf(stderr, "rio: WM_STATE: format %d data %d %d w 0x%x\n",
(int)e->format, (int)e->data.l[0], (int)e->data.l[1],
(int)e->window);
return;
}
fprintf(stderr, "rio: strange ClientMessage, type 0x%x window 0x%x\n",
(int)e->message_type, (int)e->window);
}

View file

@ -53,6 +53,8 @@ Atom wm_lose_focus;
Atom wm_colormaps;
Atom _rio_running;
Atom _rio_hold_mode;
Atom wm_state_fullscreen;
Atom wm_state;
char *fontlist[] = {
"lucm.latin1.9",
@ -180,6 +182,8 @@ main(int argc, char *argv[])
wm_colormaps = XInternAtom(dpy, "WM_COLORMAP_WINDOWS", False);
_rio_running = XInternAtom(dpy, "_9WM_RUNNING", False);
_rio_hold_mode = XInternAtom(dpy, "_9WM_HOLD_MODE", False);
wm_state = XInternAtom(dpy, "_NET_WM_STATE", False);
wm_state_fullscreen = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
if(fname != 0)
if((font = XLoadQueryFont(dpy, fname)) == 0)