Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alphakok
chromium
chromium-browser-window-focus.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-browser-window-focus.patch of Package chromium
--- chromium/src/chrome/browser/gtk/browser_window_gtk.cc +++ chromium/src/chrome/browser/gtk/browser_window_gtk.cc @@ -644,6 +644,9 @@ void BrowserWindowGtk::Show() { // area, then undo it so that the render view can later adjust its own // size. gtk_widget_set_size_request(contents_container_->widget(), -1, -1); + + // Let mutter-moblin to switch to browser window's zone. + gdk_window_focus(gtk_widget_get_window(GTK_WIDGET(window_)), GDK_CURRENT_TIME); } void BrowserWindowGtk::SetBoundsImpl(const gfx::Rect& bounds, @@ -714,6 +717,8 @@ void BrowserWindowGtk::Close() { void BrowserWindowGtk::Activate() { gtk_window_present(window_); + // Let mutter-moblin to switch to browser window's zone. + gdk_window_focus(gtk_widget_get_window(GTK_WIDGET(window_)), GDK_CURRENT_TIME); } void BrowserWindowGtk::Deactivate() {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor