wasm: don't show the resize cursor for fullscreen windows
The compositor should not show the resize cursor for fullscreen and maximized windows, since windows in those states aren't resizable. Pick-to: 6.3 Change-Id: I58762b7729a02f9a3c78edafe5d9d5b364fb552f Reviewed-by: David Skoland <david.skoland@qt.io> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>bb10
parent
029f90f7ea
commit
36507ae617
|
|
@ -1068,7 +1068,11 @@ bool QWasmCompositor::processMouse(int eventType, const EmscriptenMouseEvent *mo
|
|||
|
||||
if (htmlWindow && pressedButtons.testFlag(Qt::NoButton)) {
|
||||
|
||||
if (htmlWindow->isPointOnResizeRegion(globalPoint)) {
|
||||
Qt::WindowStates windowState = htmlWindow->window()->windowState();
|
||||
bool isResizable = !(windowState.testFlag(Qt::WindowMaximized) || windowState.testFlag(Qt::WindowFullScreen));
|
||||
bool isOnResizeRegion = htmlWindow->isPointOnResizeRegion(globalPoint);
|
||||
|
||||
if (isResizable && isOnResizeRegion) {
|
||||
QCursor resizingCursor = eventTranslator->cursorForMode(htmlWindow->resizeModeAtPoint(globalPoint));
|
||||
|
||||
if (resizingCursor != window2->cursor()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue