-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving window to correct coordinates before maximizing #1765
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, can't test your changes because I don't have a second monitor, but the change looks right and you say it works for you. I checked this line against our fixed CI and it passes, so we're basically ready to merge, it would be nice if you could fill in a release note file for us before that:
make reno SLUG=fix_move_window_to_correct_coordinates_before_maximising
in the top level of the project directory should pop a release notes template for you to fill in. Delete the sections that aren't relevant, fill in the ones that are and we'll be good to go.
I still have a second monitor, I can test my changes again, to see if this PR is still relevant. |
d2e2e9c
to
98e29e2
Compare
Went and rebased and added the release notes file so we can see the build status of this for now. EDIT: Build status looks good so when you or anyone affected can confirm this is still good I'll merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take the emote as confirmation that this still works for you and merge
@Davidy22 I can't open guake for a user, but I can open it with sudo. I don't know if this matters. I have set Guake Preferences -> Main Windows -> Height to half. Anything other than full height makes guake to improperly show up on a monitor with dock on right side: guake windows has width that is too wide - it should be shorter by a dock's width. Because of that it shows up on my left monitor (dock is on my right monitor). If I press F11 it changes window size properly and moves to just 1 monitor. Guake Version: 3.7.1.dev119 |
Oh alright, going to have to monkey a unity dock onto my not-ubuntu distro to test properly, and finally get me a second monitor. The opening just for a super user should just be happening when installing from source, been making some changes to clean up upgrading, #1897 should clean up the last of that one. |
Actually @kpalczewski, there is #1729 which is in the queue, but has some issues that still need clearing up. To note, the contributor states that it is untested, and hasn't come back with further testing results, but it looks related to your issue. If that branch fixes the issue for you, then I can look at fixing the rest of that pull request and merging. |
@Davidy22 that version doesn't run anymore on Ubuntu 20.04 later I can try to make changes from branch ubuntu-lts-hotfix onto latest guake version from github. |
Eh, there were a lot of issues in there on visual inspection, it's possible that version never ran on ubuntu, was an outside hope that it would work as advertised. |
Using issue #1689, specifically the one comment about setting height and width to anything less than 100% (#1689 (comment)) I managed to track down the condition that deals with maximized windows, but not fullscreen:
According to this answer on stackoverflow, you should move the window to the correct coordinates, in the correct display, before attempting to maximize the window. I just replicated this with the correct coordinates calculated beforehand and in my machine it seems to have fixed the issue.
EDIT:
seems like it should also fix:
#1761
#1745
#1738