projects
/
dana
/
dcompmgr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
740138d
)
don't request hard-coded atoms from the server, it won't work
author
Dana Jansens
<danakj@orodu.net>
Wed, 5 Mar 2008 15:29:25 +0000
(10:29 -0500)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 5 Mar 2008 15:29:25 +0000
(10:29 -0500)
display.c
patch
|
blob
|
history
diff --git
a/display.c
b/display.c
index
1ce9e13
..
65adc2a
100644
(file)
--- a/
display.c
+++ b/
display.c
@@
-101,16
+101,8
@@
static void
query_statics(d_display_t *dpy)
{
d_atom_query_t atoms[] = {
query_statics(d_display_t *dpy)
{
d_atom_query_t atoms[] = {
- { .atom = &dpy->a.atom,
- .name = "ATOM" },
- { .atom = &dpy->a.cardinal,
- .name = "CARDINAL" },
{ .atom = &dpy->a.utf8_string,
.name = "UTF8_STRING" },
{ .atom = &dpy->a.utf8_string,
.name = "UTF8_STRING" },
- { .atom = &dpy->a.string,
- .name = "STRING" },
- { .atom = &dpy->a.pixmap,
- .name = "PIXMAP" },
{ .atom = &dpy->a.net_wm_window_type,
.name = "_NET_WM_WINDOW_TYPE" },
{ .atom = &dpy->a.net_wm_window_type_desktop,
{ .atom = &dpy->a.net_wm_window_type,
.name = "_NET_WM_WINDOW_TYPE" },
{ .atom = &dpy->a.net_wm_window_type_desktop,
@@
-164,6
+156,12
@@
query_statics(d_display_t *dpy)
for (i = 0; atoms[i].atom != NULL; ++i)
reply_atom(dpy, &atoms[i]);
for (i = 0; atoms[i].atom != NULL; ++i)
reply_atom(dpy, &atoms[i]);
+
+ /* hard-coded ones, you can't request these */
+ dpy->a.atom = 4;
+ dpy->a.cardinal = 6;
+ dpy->a.pixmap = 20;
+ dpy->a.string = 31;
}
d_display_t*
}
d_display_t*