-
Notifications
You must be signed in to change notification settings - Fork 6
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
Windows not returning to the same tiling position #57
Comments
In this case, are they still in tiling state, I mean when you resize either window, another window resizes too? |
If I understood your question correctly, yes, tiling state is enabled at all times. |
Do you use Wayland or X11? |
X11 |
Oddly enough, the windows didn't flip to the desired position when I saved them in reverse. I made a mistake while typing the above comment: The latter, edited version is correct. |
Here's a practical example. Discord and Element. I want Discord on the left and Element on the right, even if we go alphabetically, that should be the correct order (D comes before E). Yet somehow they flip. That is when Discord actually opens on the correct workspace. Most of the time it just spawns on my first workspace making me have to click the |
For Thunderbird and Obsidian, the button seems to work. For Discord and Element, the button always opens Element before Discord, so naturally they swap positions. This might be some race condition. Perhaps if I could save Discord and Element in different sessions, but have Element open with a delay? I'm guessing that workaround could be applied to Thunderbird and Obsidian, since they also restore to opposite sides, but only on initial startup. |
Sure. Though I'm not sure how to reproduce discord opening on the correct workspace on startup. As I said most of the time it opens on the first workspace, because when I login, the first workspace is presented to me, meaning Below are logs for:
|
The restore or open order is not guaranteed. It launches apps asynchronously. This happens very fast. It probably can launch twenty apps in just seconds. I want to sort the saved apps by the time they takes to fully open and restore them from the longest in the future. |
If the restore order is not guaranteed, I'm not sure if this might be an issue related to your extension. Perhaps it could be Pop OS's tiling, simply placing newly opened windows to the right, and if Discord opens after Element, it's always going to be on the right. I'm thinking the only thing your extension can do in this scenario is trigger the On second thought I think that is exactly what happens.
Only way to fight this is to open apps sequentially, in the same order which they are initially opened. Not sure how complicated this would be from your side. Or perhaps multitask workspaces, but open sequentially on each workspace. Eg.
1,2,3 could be multitasked, with each app being ran sequentially. Not sure how I would implement the "finish" state, other than possibly hardcoding sleep timers for entire workspaces between a loaded window and before starting to open a new window. Eg.
Or maybe better, having a GUI option to show all windows that will be opened on startup, and having the user chose a delay for that window. Eg.
|
So now if I try to press the If I move discord away from the workspace, and then press the button, discord goes back to it's workspace, though on the right side (wrong) - technically correct from a tiling point of view, it just goes to that workspace and is added to the right side of current window. Same happens if I move element away from the workspace, and then press the button, only this time, since the process is reversed, element is placed on the right side, giving me the desired view. |
Or I could have saved precious time for both of us, and just went the linux hackery way:
Works like a charm. |
Hello,
I'm using Pop!_OS 22.04 LTS (tiling enabled) with GNOME Shell 42.3.1
If I open Program A on the left of my workspace, and program B on the right (also open them in that order), when rebooting and automatically restoring windows, they always get swapped, B is on the left and A is on the right.
Any idea why this is happening or if it can be bypassed with some hackery? Perhaps it's a simple semantic issue in the code
The text was updated successfully, but these errors were encountered: