Skip to content

Desktop widgets appearing on wrong screen. #73

@ShadowKing345

Description

@ShadowKing345

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions