desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Client Window is hidden by taskbar on left side (Win11)

Open SchreinerK opened this issue 1 year ago • 0 comments

⚠️ Before submitting, please verify the following: ⚠️

Bug description

The window opened by the tray icon., is always on left side, even if the taskbar is located there. This covers it up. This already worked in Windows 10, but apparently not in Windows 11.

image

NextCloud client should use the working area to determine the left position.

#include <windows.h>

int main() {
  MONITORINFO monitorInfo;
  monitorInfo.cbSize = sizeof(MONITORINFO);

  GetMonitorInfo(MonitorFromWindow(GetConsoleWindow(), MONITOR_DEFAULTTOPRIMARY), &monitorInfo);

  LONG left= monitorInfo.rcWorkArea.left.;
}

I tried the method and rcWorkArea gets the correct position.

Steps to reproduce

  1. Taskbar on left side
  2. Open NextCloud by clicking the icon

Expected behavior

Windows position is inside working area and not hidden.

Which files are affected by this bug

?

Operating system

Windows

Which version of the operating system you are running.

Windows 11

Package

Appimage

Nextcloud Server version

0.0.0

Nextcloud Desktop Client version

3.12.0

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

Are you using an external user-backend?

  • [ ] Default internal user-backend
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Nextcloud Server logs

No response

Additional info

No response

SchreinerK avatar Mar 04 '24 06:03 SchreinerK