mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[client] x11: sync the mouse on meta resize
This commit is contained in:
@@ -1032,7 +1032,10 @@ static void x11XInputEvent(XGenericEventCookie *cookie)
|
|||||||
{
|
{
|
||||||
// if meta ungrab for move/resize
|
// if meta ungrab for move/resize
|
||||||
if (xie->mode == XINotifyUngrab)
|
if (xie->mode == XINotifyUngrab)
|
||||||
|
{
|
||||||
|
app_updateCursorPos(xie->event_x, xie->event_y);
|
||||||
app_handleFocusEvent(true);
|
app_handleFocusEvent(true);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1058,7 +1061,10 @@ static void x11XInputEvent(XGenericEventCookie *cookie)
|
|||||||
{
|
{
|
||||||
// if meta grab for move/resize
|
// if meta grab for move/resize
|
||||||
if (xie->mode == XINotifyGrab)
|
if (xie->mode == XINotifyGrab)
|
||||||
|
{
|
||||||
|
app_updateCursorPos(xie->event_x, xie->event_y);
|
||||||
app_handleFocusEvent(false);
|
app_handleFocusEvent(false);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user