Skip to content

Commit

Permalink
Fixed _NET_SUPPORTING_WM_CHECK and _NET_SUPPORTED property setup.
Browse files Browse the repository at this point in the history
darcs-hash:20050605193518-4eba8-b8a862aab0dcf7d6619c6da38a35fa7ac5ddefb6.gz
  • Loading branch information
Tuomo Valkonen committed Jun 5, 2005
1 parent 951a93a commit 6987054
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions ioncore/netwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ void netwm_init()
void netwm_init_rootwin(WRootWin *rw)
{
Atom atoms[N_NETWM];
const char *p[1];

atoms[0]=atom_net_wm_name;
atoms[1]=atom_net_wm_state;
Expand All @@ -66,18 +67,15 @@ void netwm_init_rootwin(WRootWin *rw)
atoms[4]=atom_net_virtual_roots;
atoms[5]=atom_net_active_window;

FOR_ALL_ROOTWINS(rw){
const char *p[1];
XChangeProperty(ioncore_g.dpy, WROOTWIN_ROOT(rw),
atom_net_supporting_wm_check, XA_WINDOW,
32, PropModeReplace, (uchar*)&(rw->dummy_win), 1);
XChangeProperty(ioncore_g.dpy, WROOTWIN_ROOT(rw),
atom_net_supported, XA_ATOM,
32, PropModeReplace, (uchar*)atoms, N_NETWM);
/* Something else should probably be used as WM name here. */
p[0]=prog_execname();
xwindow_set_text_property(rw->dummy_win, atom_net_wm_name, p, 1);
}
XChangeProperty(ioncore_g.dpy, WROOTWIN_ROOT(rw),
atom_net_supporting_wm_check, XA_WINDOW,
32, PropModeReplace, (uchar*)&(rw->dummy_win), 1);
XChangeProperty(ioncore_g.dpy, WROOTWIN_ROOT(rw),
atom_net_supported, XA_ATOM,
32, PropModeReplace, (uchar*)atoms, N_NETWM);
/* Something else should probably be used as WM name here. */
p[0]=prog_execname();
xwindow_set_text_property(rw->dummy_win, atom_net_wm_name, p, 1);
}


Expand Down

0 comments on commit 6987054

Please sign in to comment.