Hi,

the next days I will be busy. I would like to share some ideas to make
the XRandR integration easier.

When the user adds/removes a screen these items change:

1. Screen size.
2. Workspace size.
3. Dock position.
4. Clip position.
5. Menu position (if open).
6. Appicons position.
7. Window position (for example, if the windows are out of the screen).

I think, that is all.

The work when the screen changes is easy: We must move the things in the
screen, BUT don't create it again.

Points 1 and 2 are so easy. I wrote the code. The Dock position is easy
too. I can move the Dock without problems (left, or right). I didn't
have time for 5,6,7.

But, I have some ideas with Clip and now with Drawers.

1. I don't know how to split the drawer creation and the drawer position
without create it. Daniel, help is welcome.
About that, I don't know why the Drawer is not like the Clip. I sent
some questions to Daniel, but no reply :-( What is the meaning of "like
the Clip"? The idea is use the same functions the clip uses, then we
don't need a lot of xyzDrawerxyz() functions (RestoreDrawer,
HideDrawer,...).

2. I would like to change the Clip behaviour. I think the clip could be
in 9 different positions on the screen (something like the appicons):

1. Near the right border
2. Near the left border
3. Near the top of the screen
4. Near the bottom of the screen
5. 1+3
6. 1+4
7. 2+3
8. 2+4
9. Not near the borders.

"Near" could be something like "x pixels" or a new flag "hold near of
the border" or something like.

Then, when the screen size changes, the Clip is moved to the right
position. For exaple, in my laptop the clip is in 1024x768 (minus 64
pixels...), that is the bottom right of the screen. When I connect an
external monitor (1920x1080), the Clip is in the same position
(1024x768). The idea is move the Clip to 1920x1080).

We have two options:

1. Add a new preference, check or something in the Clip
2. Try to calculate it "by the way". p.e. "if (x_pos -5 >=
old_screen_x_size) then move_clip_x(new_screen_x_size)" (and the same
for y).

If we don't add this behaviour to the clip, with XRandR, the Clip is in
the same position after the window change.

What do you think?
Cheers,
kix
-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to