mirror of
				https://bitbucket.org/chromiumembedded/cef
				synced 2025-06-05 21:39:12 +02:00 
			
		
		
		
	linux: alloy: Fix window resize after context menu dismissal (fixes #3466)
This commit is contained in:
		
				
					committed by
					
						 Marshall Greenblatt
						Marshall Greenblatt
					
				
			
			
				
	
			
			
			
						parent
						
							8746aab738
						
					
				
				
					commit
					1a97a28b0f
				
			| @@ -127,6 +127,7 @@ CefWindowX11::CefWindowX11(CefRefPtr<CefBrowserHostBase> browser, | ||||
|       /*visual_has_alpha=*/nullptr); | ||||
|  | ||||
|   xwindow_ = connection_->GenerateId<x11::Window>(); | ||||
|  | ||||
|   connection_->CreateWindow({ | ||||
|       .depth = depth, | ||||
|       .wid = xwindow_, | ||||
| @@ -140,12 +141,15 @@ CefWindowX11::CefWindowX11(CefRefPtr<CefBrowserHostBase> browser, | ||||
|       .background_pixel = 0, | ||||
|       .border_pixel = 0, | ||||
|       .override_redirect = x11::Bool32(false), | ||||
|       .event_mask = x11::EventMask::FocusChange | | ||||
|                     x11::EventMask::StructureNotify | | ||||
|                     x11::EventMask::PropertyChange, | ||||
|       .colormap = colormap, | ||||
|   }); | ||||
|  | ||||
|   auto event_mask = x11::EventMask::FocusChange | | ||||
|                     x11::EventMask::StructureNotify | | ||||
|                     x11::EventMask::PropertyChange; | ||||
|   xwindow_events_ = | ||||
|       std::make_unique<x11::XScopedEventSelector>(xwindow_, event_mask); | ||||
|  | ||||
|   connection_->Flush(); | ||||
|  | ||||
|   DCHECK(ui::X11EventSource::HasInstance()); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user