fix: system-context-menu with frameless BrowserWindows (#43274)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
		
					parent
					
						
							
								10dd33c16e
							
						
					
				
			
			
				commit
				
					
						dd1dcad81c
					
				
			
		
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -289,6 +289,15 @@ bool NativeWindowViews::PreHandleMSG(UINT message,
 | 
			
		|||
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
    case WM_RBUTTONUP: {
 | 
			
		||||
      if (!has_frame()) {
 | 
			
		||||
        bool prevent_default = false;
 | 
			
		||||
        NotifyWindowSystemContextMenu(GET_X_LPARAM(l_param),
 | 
			
		||||
                                      GET_Y_LPARAM(l_param), &prevent_default);
 | 
			
		||||
        return prevent_default;
 | 
			
		||||
      }
 | 
			
		||||
      return false;
 | 
			
		||||
    }
 | 
			
		||||
    case WM_GETMINMAXINFO: {
 | 
			
		||||
      WINDOWPLACEMENT wp;
 | 
			
		||||
      wp.length = sizeof(WINDOWPLACEMENT);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue