mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-05 21:34:17 +01:00
Added wGetHeadRelativeToCurrentHead function
A new function for obtaining possible heads (displays) was added. It allow to query for a head in four directions relative to the current one.
This commit is contained in:
@@ -35,12 +35,21 @@ void wInitXinerama(WScreen *scr);
|
||||
#define XFLAG_MULTIPLE 0x02
|
||||
#define XFLAG_PARTIAL 0x04
|
||||
|
||||
enum {
|
||||
DIRECTION_LEFT,
|
||||
DIRECTION_RIGHT,
|
||||
DIRECTION_UP,
|
||||
DIRECTION_DOWN
|
||||
};
|
||||
|
||||
int wGetRectPlacementInfo(WScreen *scr, WMRect rect, int *flags);
|
||||
|
||||
int wGetHeadForRect(WScreen *scr, WMRect rect);
|
||||
|
||||
int wGetHeadForWindow(WWindow *wwin);
|
||||
|
||||
int wGetHeadRelativeToCurrentHead(WScreen *scr, int current_head, int direction);
|
||||
|
||||
int wGetHeadForPoint(WScreen *scr, WMPoint point);
|
||||
|
||||
int wGetHeadForPointerLocation(WScreen *scr);
|
||||
|
||||
Reference in New Issue
Block a user