Defective Window Management for PWAs

Issue Description

Whenever a PWA (Progressive Web App) is maximised on Windows 10 and then the title bar (four of its top pixels) is dragged (clicked, held and moved), the window behaves as if it were not maximised. Hovering over these pixels results in displaying a cursor used whilst resizing. Dragging the window by the pixels has no effect – it seems that the system window manager is trying to resize the window in spite of it being maximised. The window should be restored down (no longer maximised) and possible to drag around, just like other windows. Dragging the window by the bottom part of the title bar works correctly.

Reproducing

  1. Install a PWA.
  2. Open the PWA.
  3. Maximise the PWA.
  4. Try to drag the PWA window when maximised by the four top pixels in the title bar.

Expected Result

The window should be restored down (no longer maximised) and possible to drag around, just like other windows.

Versions

  • Brave: 1.73.91; Chromium: 131.0.6778.85; 64-bit
  • Windows 10 Pro 22H2; OS Build: 19045.5131; 64-bit

Additional Information

Screen resolution and monitor scaling might be relevant here, although this combination is probably one of the most common ones:

  • Resolution: 1920 × 1080
  • Scaling: 100%

May interest: