Skip to content
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

Desktop widgets appearing on wrong screen. #73

Open
ShadowKing345 opened this issue Aug 6, 2021 · 0 comments
Open

Desktop widgets appearing on wrong screen. #73

ShadowKing345 opened this issue Aug 6, 2021 · 0 comments

Comments

@ShadowKing345
Copy link

Hello I am using your extension module for Awesome window manager with a dual screen setup. When i was creating the desktop widgets I found out that the widgets would appear on my left most screen (not primary screen) and slightly higher then they should be.
A bit of digging later and I have found that when you are getting the positions of widgets with workarea you are not adding the x or y position which causes them to appear on the wrong screen.

to fix it on my end I have added:

if dir == "width" then
	pos = pos + workarea.x
elseif dir == "height" then
	pos = pos + workarea.y
end

just before you return the pos in the local function redflat.util.desktop.wposition .
I hope this helps.

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

No branches or pull requests

1 participant