~mdw
/
xtoys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xqueryptr.c: Add new program to interrogate the pointer position.
[xtoys]
/
xrepaint.c
diff --git
a/xrepaint.c
b/xrepaint.c
index
b957650
..
23c81e0
100644
(file)
--- a/
xrepaint.c
+++ b/
xrepaint.c
@@
-81,7
+81,9
@@
static Window cover_screen(Screen *sc)
XSetWindowAttributes attr;
attr.background_pixel = 0;
XSetWindowAttributes attr;
attr.background_pixel = 0;
- attr.event_mask = StructureNotifyMask | VisibilityChangeMask | ExposureMask | KeyPressMask | ButtonPressMask;
+ attr.event_mask =
+ StructureNotifyMask | VisibilityChangeMask | ExposureMask |
+ KeyPressMask | ButtonPressMask;
attr.override_redirect = True;
w = XCreateWindow(dpy, RootWindowOfScreen(sc),
0, 0, WidthOfScreen(sc), HeightOfScreen(sc),
attr.override_redirect = True;
w = XCreateWindow(dpy, RootWindowOfScreen(sc),
0, 0, WidthOfScreen(sc), HeightOfScreen(sc),
@@
-154,7
+156,9
@@
int main(int argc, char *argv[])
while (n) {
XNextEvent(dpy, &ev);
switch (ev.type) {
while (n) {
XNextEvent(dpy, &ev);
switch (ev.type) {
- case Expose: case KeyPress: case ButtonPress:
+ case MapNotify:
+ w = ev.xmap.window; goto window_visible;
+ case VisibilityNotify: case Expose: case KeyPress: case ButtonPress:
w = ev.xany.window; goto window_visible;
window_visible:
for (i = 0; i < n; i++)
w = ev.xany.window; goto window_visible;
window_visible:
for (i = 0; i < n; i++)