chatterino2 icon indicating copy to clipboard operation
chatterino2 copied to clipboard

Cannot move window via top bar or resize window after clicking the add account button

Open ALazyMeme opened this issue 4 years ago • 8 comments

Describe the bug After clicking the add account button, you cannot move the window using the top bar or resize using the edge of the application

To reproduce

  1. Click and drag the window using the top bar, notice it works normally
  2. Go to settings to add account, click add account
  3. Close the window, close the settings

Screenshots

https://user-images.githubusercontent.com/41973452/160349134-e34508d1-20dd-4550-8212-b6bf956e0f43.mp4

Chatterino version commit a9b1af60d

Operating system Windows 10

ALazyMeme avatar Jan 20 '21 10:01 ALazyMeme

I am able to reproduce this on Windows 10 1909

Torston420 avatar Jan 20 '21 10:01 Torston420

I still can't move it too win 10 21h1

deprale avatar Oct 17 '21 22:10 deprale

I also am able to reproduce this issue on: OS Name: Microsoft Windows 10 Home Version: 10.0.19042 Build 19042

treckstar avatar Oct 29 '21 00:10 treckstar

Still seeing this. Have to relaunch the app to reset it. Windows 10 21H2

ZerOmNia avatar Feb 17 '22 01:02 ZerOmNia

same issue here, luckily closing and reopening fixes it

jaerockets avatar Mar 14 '22 00:03 jaerockets

Still able to repo this: Chatterino 2.3.5 (commit 81a62764c) Windows 10 21H2

PurplProto avatar May 27 '22 10:05 PurplProto

Still reproducible with commit 81a62764c Windows 11

derossm avatar Sep 15 '22 21:09 derossm

Still reproducible with commit 81a6276

That's why the issue is still open edit: Also that commit is from April so even if we had fixed it you wouldn't have the fix.

Felanbird avatar Sep 15 '22 21:09 Felanbird

Still reproducible with commit 81a6276

That's why the issue is still open edit: Also that commit is from April so even if we had fixed it you wouldn't have the fix.

This is fixed in https://github.com/Chatterino/chatterino2/pull/3636/commits/e269a75c1bd2e5d77e923c423711d49a1115c6a4 but was closed without being approved.

Using platform specific calls to lock Qt windows is less than ideal, and the original purpose is dubious, so just removing this macro qualified windows api call makes sense. The account panel is already "always on top" relative other chatterino windows while open, so being able to move or resize a window behind it doesn't seem like a benefit nor does it seem to pose any security risk to allow it to be moved afaik.

I might suggest disabling chat input while account panel is open to avoid accidental pastes to chat, but that is unrelated and not affected by this issue or fix.

Otherwise you probably have to fully redraw the main window to fix it; just calling ::SetWindowPos without the flags won't reset the permissions.

edit: I found the closed PR when I went to upload the same fix, so I didn't make a duplicate pull.

derossm avatar Sep 25 '22 01:09 derossm

@derossm the reason why that PR wasn't merged is because it causes issues with chatterino's "Always On Top" setting when enabled. It really does require a call to some Windows shit just to prevent that from being an issue. If you wanna take a crack at fixing it be my guest - I haven't had the incentive to fix it as I don't use Windows.

jupjohn avatar Sep 25 '22 03:09 jupjohn