lucmos / lucmos/UltrawideWindows

Telegram Desktop resets its position after switching to fullscreen

Open
#17 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
218
Forks
39
PR merge metrics
No merged PRs in 30d

Description

This is probably connected to #12.

I'm on Fedora 33, using the latest version of UltrawideWindows (installed it via git clone).

I move the Telegram's window to some position using one of shortcuts exposed by UltrawideWindows. The window moves and stays there, switching the virtual desktop doesn't break anything. However, when I click on any image or video in any message within Telegram, it opens fullscreen, and when I close it to return back, the messenger's main window is reset to the position that has been set to it previously using the other means, not the UltrawideWindows script.

For example:
1. I move the main Telegram window somewhere in the middle of the screen.
2. I press `Ctrl`+`Meta`+`Numpad6`. The window moves to 1/4 width at the right side of the screen.
3. I open some media. It opens fullscreen.
4. I press `Escape` or click the Close button.
5. The window position is reset to what it has been in (1).

The unwanted reset can be avoided if after (2) I alter the window position manually. Dragging the window border a few pixels here and there is enough.

I tried the same with other applications, e.g., Chrome and Firefox, they worked properly, resetting their position to what has been assigned via UltrawideWindows. Probably they use some other method of going fullscreen, or do a better job on restoring the position.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the five-step sequence with Telegram on Fedora 33 using the reported Ctrl+Meta+Numpad6 shortcut, then compare the behavior with Chrome and Firefox. Investigate the UltrawideWindows window-position handling involved in fullscreen transitions; done means Telegram returns to the position assigned by UltrawideWindows after media is closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.