Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e8f4fc8
)
Add more debug output to enternotify().
author
Ryan McBride
<mcbride@countersiege.com>
Tue, 27 Oct 2009 10:42:46 +0000
(10:42 +0000)
committer
Ryan McBride
<mcbride@countersiege.com>
Tue, 27 Oct 2009 10:42:46 +0000
(10:42 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
5e3ced2
..
6132292
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-3958,8
+3958,11
@@
enternotify(XEvent *e)
* state is set when we are switching workspaces and focus is set when
* scrotwm launches via a restart
*/
* state is set when we are switching workspaces and focus is set when
* scrotwm launches via a restart
*/
- if (ev->state || ev->focus)
+ if (ev->state || ev->focus) {
+ DNPRINTF(SWM_D_EVENT, "ignoring enternotify: focus\n");
return;
return;
+ }
+
/*
* happens when a window is created or destroyed and the border
* crosses the mouse pointer and when switching ws
/*
* happens when a window is created or destroyed and the border
* crosses the mouse pointer and when switching ws
@@
-3968,26
+3971,35
@@
enternotify(XEvent *e)
* to give focus to floaters
*/
if (ev->mode == NotifyNormal && ev->detail == NotifyVirtual &&
* to give focus to floaters
*/
if (ev->mode == NotifyNormal && ev->detail == NotifyVirtual &&
- ev->subwindow == 0)
+ ev->subwindow == 0) {
+ DNPRINTF(SWM_D_EVENT, "ignoring enternotify: NotifyVirtual\n");
return;
return;
+ }
/* this window already has focus */
/* this window already has focus */
- if (ev->mode == NotifyNormal && ev->detail == NotifyInferior)
+ if (ev->mode == NotifyNormal && ev->detail == NotifyInferior) {
+ DNPRINTF(SWM_D_EVENT, "ignoring enternotify: win has focus\n");
return;
return;
+ }
/* this window is being deleted or moved to another ws */
if (XCheckTypedWindowEvent(display, ev->window, ConfigureNotify,
&cne) == True) {
/* this window is being deleted or moved to another ws */
if (XCheckTypedWindowEvent(display, ev->window, ConfigureNotify,
&cne) == True) {
+ DNPRINTF(SWM_D_EVENT, "ignoring enternotify: configurenotify\n");
XPutBackEvent(display, &cne);
return;
}
XPutBackEvent(display, &cne);
return;
}
- if ((win = find_window(ev->window)) == NULL)
+ if ((win = find_window(ev->window)) == NULL) {
+ DNPRINTF(SWM_D_EVENT, "ignoring enternotify: win == NULL\n");
return;
return;
+ }
/* in fullstack kill all enters */
/* in fullstack kill all enters */
- if (win->ws->cur_layout->flags & SWM_L_FOCUSPREV)
+ if (win->ws->cur_layout->flags & SWM_L_FOCUSPREV) {
+ DNPRINTF(SWM_D_EVENT, "ignoring event: fullstack\n");
return;
return;
+ }
focus_magic(win, SWM_F_TRANSIENT);
}
focus_magic(win, SWM_F_TRANSIENT);
}