1
0
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:
2017-02-07 21:05:15 +01:00
committed by Carlos R. Mafra
parent e2f8525728
commit 014a315f3a
2 changed files with 79 additions and 0 deletions

View File

@@ -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);