mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
core: avoid sending duplicate acks for ls
This commit is contained in:
parent
1651b02cc1
commit
9cca0dbb45
1 changed files with 4 additions and 1 deletions
|
@ -69,13 +69,16 @@ CSessionLockSurface::CSessionLockSurface(COutput* output) : output(output) {
|
||||||
void CSessionLockSurface::configure(const Vector2D& size_, uint32_t serial_) {
|
void CSessionLockSurface::configure(const Vector2D& size_, uint32_t serial_) {
|
||||||
Debug::log(LOG, "configure with serial {}", serial_);
|
Debug::log(LOG, "configure with serial {}", serial_);
|
||||||
|
|
||||||
|
const bool sameSerial = serial == serial_;
|
||||||
|
|
||||||
serial = serial_;
|
serial = serial_;
|
||||||
size = (size_ * fractionalScale).floor();
|
size = (size_ * fractionalScale).floor();
|
||||||
logicalSize = size_;
|
logicalSize = size_;
|
||||||
|
|
||||||
Debug::log(LOG, "Configuring surface for logical {} and pixel {}", logicalSize, size);
|
Debug::log(LOG, "Configuring surface for logical {} and pixel {}", logicalSize, size);
|
||||||
|
|
||||||
ext_session_lock_surface_v1_ack_configure(lockSurface, serial);
|
if (!sameSerial)
|
||||||
|
ext_session_lock_surface_v1_ack_configure(lockSurface, serial);
|
||||||
|
|
||||||
if (fractional)
|
if (fractional)
|
||||||
wp_viewport_set_destination(viewport, logicalSize.x, logicalSize.y);
|
wp_viewport_set_destination(viewport, logicalSize.x, logicalSize.y);
|
||||||
|
|
Loading…
Reference in a new issue