mate-desktop / caja

Caja, the file manager for the MATE desktop
https://mate-desktop.org/
Other
271 stars 145 forks source link

Caja desktop geometry bugs regarding icon placement #85

Open smkent opened 11 years ago

smkent commented 11 years ago

Caja uses the window manager hint _NET_WORKAREA to determine the desktop size. However, this presents issues with multiple monitors:

I'm not sure what the best solution is; but after doing some searching, I think Caja should figure out the desktop dimensions for each monitor and monitor for/subtract the panel regions ("struts") itself. Each X window that is meant to always be visible at the edge of a screen, like a panel, is called a strut and sets one and/or both of the _NET_WM_STRUT or _NET_WM_STRUT_PARTIAL hints. (Here's the documentation on those.) I think this means Caja would have to register to receive events when these values change, I'm not sure how it would all work.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2121163-caja-desktop-geometry-bugs-regarding-icon-placement?utm_campaign=plugin&utm_content=tracker%2F651521&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F651521&utm_medium=issues&utm_source=github).
phu9Suop commented 5 years ago

Hi While working on another x window related issue, I discovered the x-caja-desktop. It holds the icons on the desktop. As it has the properties of a window, it can be moved around and with wmctrl -r x-caja-desktop -e 0,1440,30,1024,770 I can move the icons to the right (right) screen, as this is the main screen which holds the panels. My left screen is 1440 pixels wide. Before they sat on the left bigger, but not main screen. This becomes a fix, if it can be executed in the x-session-manager once the window x-caja-desktop has been established. Here I need some advice where the execution file shall be placed . /etc/X11/Xsession.d ? or some /var/lib/share/xconf/ something ?

It would be desirable if x-caja-desktop coordinates are configurable e.g. from dconf-editor or similar. dist = debian 10, mate 1.20.4, xdpyinfo | grep version version number: 11.0 X.Org version: 1.20.4

Edit: changed sequence, added directories, and system infos

phu9Suop commented 4 years ago

I have checked on the above again, and have verified, that wmctrl is not capable of changing the size of the x-caja-desktop, but only the position. So the issue of having icons placed outside of the visible area remains open.