mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
fix hidden floatbar consumes a lot of cpu
This commit is contained in:
@@ -127,7 +127,7 @@ void xf_floatbar_hide_and_show(xfContext* xfc)
|
||||
floatbar->y = floatbar->y - 1;
|
||||
XMoveWindow(xfc->display, floatbar->handle, floatbar->x, floatbar->y);
|
||||
}
|
||||
else if (floatbar->y < 0)
|
||||
else if (floatbar->y < 0 && (floatbar->last_motion_y_root < 10))
|
||||
{
|
||||
floatbar->y = floatbar->y + 1;
|
||||
XMoveWindow(xfc->display, floatbar->handle, floatbar->x, floatbar->y);
|
||||
|
||||
Reference in New Issue
Block a user