projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
olaf neophyte and de.po updates, valgrind tweaks, delete green lady, inkscape dpi=96
[goodguy/history.git]
/
cinelerra-5.1
/
guicast
/
bcwindowbase.C
diff --git
a/cinelerra-5.1/guicast/bcwindowbase.C
b/cinelerra-5.1/guicast/bcwindowbase.C
index 7de7c15d2d13573043729aa9d01dcf9c7d69ead9..621c560acb4b5363df11985e77aca1a13a934847 100644
(file)
--- a/
cinelerra-5.1/guicast/bcwindowbase.C
+++ b/
cinelerra-5.1/guicast/bcwindowbase.C
@@
-1357,7
+1357,7
@@
locking_message = event->xclient.message_type;
cursor_entered = 1;
}
if( cursor_entered )
cursor_entered = 1;
}
if( cursor_entered )
-
XSetInputFocus(display, win, RevertToParent, CurrentTime
);
+
focus(
);
}
event_win = event->xany.window;
cursor_x = event->xcrossing.x;
}
event_win = event->xany.window;
cursor_x = event->xcrossing.x;
@@
-4577,3
+4577,11
@@
void BC_WindowBase::flicker(int n, int ms)
set_opaque();
}
set_opaque();
}
+void BC_WindowBase::focus()
+{
+ XWindowAttributes xwa;
+ XGetWindowAttributes(top_level->display, top_level->win, &xwa);
+ if( xwa.map_state == IsViewable )
+ XSetInputFocus(top_level->display, top_level->win, RevertToParent, CurrentTime);
+}
+