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:
6c9491c
)
ryan keeps putting variables in ifs for some reason...
author
Marco Peereboom
<marco@conformal.com>
Thu, 29 Oct 2009 18:47:48 +0000
(18:47 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Thu, 29 Oct 2009 18:47:48 +0000
(18:47 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
b9e6c22
..
a1df7b4
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-3939,7
+3939,10
@@
enternotify(XEvent *e)
{
XCrossingEvent *ev = &e->xcrossing;
XEvent cne;
{
XCrossingEvent *ev = &e->xcrossing;
XEvent cne;
- struct ws_win *win;
+ struct ws_win *win, *w;
+ Window focus_return;
+ int revert_to_return;
+
DNPRINTF(SWM_D_FOCUS, "enternotify: window: %lu mode %d detail %d root "
"%lu subwindow %lu same_screen %d focus %d state %d\n",
DNPRINTF(SWM_D_FOCUS, "enternotify: window: %lu mode %d detail %d root "
"%lu subwindow %lu same_screen %d focus %d state %d\n",
@@
-4005,10
+4008,6
@@
enternotify(XEvent *e)
*/
if (win->ws->cur_layout->flags & SWM_L_FOCUSPREV &&
last_focus_event != FocusOut) {
*/
if (win->ws->cur_layout->flags & SWM_L_FOCUSPREV &&
last_focus_event != FocusOut) {
- struct ws_win *w;
- Window focus_return;
- int revert_to_return;
-
XGetInputFocus(display, &focus_return, &revert_to_return);
if ((w = find_window(focus_return)) == NULL ||
w->ws == win->ws) {
XGetInputFocus(display, &focus_return, &revert_to_return);
if ((w = find_window(focus_return)) == NULL ||
w->ws == win->ws) {