cascade on xinerama with pointer instead of on first xinerama.
2003-04-06 Rob Adams <robadams@ucla.edu> * src/place.c (find_next_cascade): cascade on xinerama with pointer instead of on first xinerama.
This commit is contained in:
parent
e1d2b95459
commit
7c5e40e0ea
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-06 Rob Adams <robadams@ucla.edu>
|
||||||
|
|
||||||
|
* src/place.c (find_next_cascade): cascade on xinerama with
|
||||||
|
pointer instead of on first xinerama.
|
||||||
|
|
||||||
2003-04-05 Rob Adams <robadams@ucla.edu>
|
2003-04-05 Rob Adams <robadams@ucla.edu>
|
||||||
|
|
||||||
Update placement policy for screen with multiple xineramas.
|
Update placement policy for screen with multiple xineramas.
|
||||||
|
@ -93,6 +93,7 @@ find_next_cascade (MetaWindow *window,
|
|||||||
int window_width, window_height;
|
int window_width, window_height;
|
||||||
int cascade_stage;
|
int cascade_stage;
|
||||||
MetaRectangle work_area;
|
MetaRectangle work_area;
|
||||||
|
const MetaXineramaScreenInfo* current;
|
||||||
|
|
||||||
sorted = g_list_copy (windows);
|
sorted = g_list_copy (windows);
|
||||||
sorted = g_list_sort (sorted, northwestcmp);
|
sorted = g_list_sort (sorted, northwestcmp);
|
||||||
@ -123,11 +124,8 @@ find_next_cascade (MetaWindow *window,
|
|||||||
* of NW corner of window frame.
|
* of NW corner of window frame.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* FIXME should use xinerama with mouse pointer
|
current = meta_screen_get_current_xinerama (window->screen);
|
||||||
* (or better, xinerama where window was launched
|
meta_window_get_work_area_for_xinerama (window, current->number, &work_area);
|
||||||
* determined via startup notification)
|
|
||||||
*/
|
|
||||||
meta_window_get_work_area_for_xinerama (window, 0, &work_area);
|
|
||||||
|
|
||||||
cascade_x = MAX (0, work_area.x);
|
cascade_x = MAX (0, work_area.x);
|
||||||
cascade_y = MAX (0, work_area.y);
|
cascade_y = MAX (0, work_area.y);
|
||||||
|
Loading…
Reference in New Issue
Block a user