rio: stub out _NET_WM_STATE_FULLSCREEN support
This commit is contained in:
parent
427abd1ebd
commit
71f6d60fcf
3 changed files with 15 additions and 1 deletions
|
|
@ -162,7 +162,8 @@ extern Atom wm_delete;
|
||||||
extern Atom wm_take_focus;
|
extern Atom wm_take_focus;
|
||||||
extern Atom wm_lose_focus;
|
extern Atom wm_lose_focus;
|
||||||
extern Atom wm_colormaps;
|
extern Atom wm_colormaps;
|
||||||
|
extern Atom wm_state_fullscreen;
|
||||||
|
extern Atom wm_state;
|
||||||
/* client.c */
|
/* client.c */
|
||||||
extern Client *clients;
|
extern Client *clients;
|
||||||
extern Client *current;
|
extern Client *current;
|
||||||
|
|
|
||||||
|
|
@ -337,6 +337,15 @@ clientmesg(XClientMessageEvent *e)
|
||||||
(int)e->format, (int)e->data.l[0], (int)e->window);
|
(int)e->format, (int)e->data.l[0], (int)e->window);
|
||||||
return;
|
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",
|
fprintf(stderr, "rio: strange ClientMessage, type 0x%x window 0x%x\n",
|
||||||
(int)e->message_type, (int)e->window);
|
(int)e->message_type, (int)e->window);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,8 @@ Atom wm_lose_focus;
|
||||||
Atom wm_colormaps;
|
Atom wm_colormaps;
|
||||||
Atom _rio_running;
|
Atom _rio_running;
|
||||||
Atom _rio_hold_mode;
|
Atom _rio_hold_mode;
|
||||||
|
Atom wm_state_fullscreen;
|
||||||
|
Atom wm_state;
|
||||||
|
|
||||||
char *fontlist[] = {
|
char *fontlist[] = {
|
||||||
"lucm.latin1.9",
|
"lucm.latin1.9",
|
||||||
|
|
@ -180,6 +182,8 @@ main(int argc, char *argv[])
|
||||||
wm_colormaps = XInternAtom(dpy, "WM_COLORMAP_WINDOWS", False);
|
wm_colormaps = XInternAtom(dpy, "WM_COLORMAP_WINDOWS", False);
|
||||||
_rio_running = XInternAtom(dpy, "_9WM_RUNNING", False);
|
_rio_running = XInternAtom(dpy, "_9WM_RUNNING", False);
|
||||||
_rio_hold_mode = XInternAtom(dpy, "_9WM_HOLD_MODE", 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(fname != 0)
|
||||||
if((font = XLoadQueryFont(dpy, fname)) == 0)
|
if((font = XLoadQueryFont(dpy, fname)) == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue