Projects
home:Eustace:branches:Eulaceura:Factory
gtk
_service:obs_scm:gtk+-1.2.10-focus.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:gtk+-1.2.10-focus.patch of Package gtk
--- gtk+-1.2.10/gtk/gtkwindow.c.focus Fri Mar 9 18:39:16 2001 +++ gtk+-1.2.10/gtk/gtkwindow.c Thu Jul 5 10:34:00 2001 @@ -985,7 +985,13 @@ break; case EnterNotify: case LeaveNotify: - if (xev->xcrossing.detail != NotifyInferior && + /* We only track the actual destination of keyboard events for real + * toplevels, not for embedded toplevels such as GtkPlug. The reason for + * this is that GtkPlug redirects events so the widget may effectively not + * have the focus even if it actually has the focus. + */ + if (gdk_window_get_parent (GTK_WIDGET (window)->window) == GDK_ROOT_PARENT () && + xev->xcrossing.detail != NotifyInferior && xev->xcrossing.focus && !window->window_has_focus) { window->window_has_pointer_focus = (xev->xany.type == EnterNotify) ? TRUE : FALSE;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2