Skip to content

Hyprland: Make sure image window is moved to correct workspace#223

Open
thatDudo wants to merge 1 commit intojstkdng:masterfrom
thatDudo:master
Open

Hyprland: Make sure image window is moved to correct workspace#223
thatDudo wants to merge 1 commit intojstkdng:masterfrom
thatDudo:master

Conversation

@thatDudo
Copy link
Copy Markdown
Contributor

The image window was always opened in the currently focused workspace instead of the workspace belonging to the terminal window. I wasnt sure implementation wise if the change_workspace should be called in wayland.cpp (like move_window) since it can be kept hidden from it without problems.

@sonarqubecloud
Copy link
Copy Markdown

@jstkdng
Copy link
Copy Markdown
Owner

jstkdng commented Sep 13, 2024

can you post some pics of the issue before/after?

@thatDudo
Copy link
Copy Markdown
Contributor Author

thatDudo commented Sep 13, 2024

This primarily happens when I open a music file
Screenshot_2024-09-13_15:09:12 2

and switch the workspace.
Screenshot_2024-09-13_15:14:09 2

when the music file closes, the image preview is readded to the currently focused workspace (triggered through the lf terminal window resize).
Screenshot_2024-09-13_15:14:56 2

@jstkdng
Copy link
Copy Markdown
Owner

jstkdng commented Sep 17, 2024

workspaces aren't treated the same way in wayland compositors so it should be wm dependent. Does this work if the terminal doesn't have a workspace assigned?

@thatDudo
Copy link
Copy Markdown
Contributor Author

thatDudo commented Sep 17, 2024

workspaces aren't treated the same way in wayland compositors so it should be wm dependent

Ok, then it is probably good to have the function being called from the hyprland.cpp file.

Does this work if the terminal doesn't have a workspace assigned?

I think every window in hyprland always has a workspace assigned to it. The id should be unique even with things that mess with workspaces like hyprsome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants