mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
parent
0d6eae0523
commit
6d67b84469
@ -2666,6 +2666,7 @@ void CCompositor::arrangeMonitors() {
|
|||||||
maxXOffsetLeft = newPosition.x;
|
maxXOffsetLeft = newPosition.x;
|
||||||
break;
|
break;
|
||||||
case eAutoDirs::DIR_AUTO_RIGHT:
|
case eAutoDirs::DIR_AUTO_RIGHT:
|
||||||
|
case eAutoDirs::DIR_AUTO_NONE:
|
||||||
newPosition.x = maxXOffsetRight;
|
newPosition.x = maxXOffsetRight;
|
||||||
maxXOffsetRight += m->vecSize.x;
|
maxXOffsetRight += m->vecSize.x;
|
||||||
break;
|
break;
|
||||||
|
@ -13,7 +13,8 @@
|
|||||||
#include "signal/Signal.hpp"
|
#include "signal/Signal.hpp"
|
||||||
|
|
||||||
// Enum for the different types of auto directions, e.g. auto-left, auto-up.
|
// Enum for the different types of auto directions, e.g. auto-left, auto-up.
|
||||||
enum class eAutoDirs {
|
enum eAutoDirs {
|
||||||
|
DIR_AUTO_NONE = 0, /* None will be treated as right. */
|
||||||
DIR_AUTO_UP,
|
DIR_AUTO_UP,
|
||||||
DIR_AUTO_DOWN,
|
DIR_AUTO_DOWN,
|
||||||
DIR_AUTO_LEFT,
|
DIR_AUTO_LEFT,
|
||||||
@ -21,7 +22,7 @@ enum class eAutoDirs {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct SMonitorRule {
|
struct SMonitorRule {
|
||||||
eAutoDirs autoDir;
|
eAutoDirs autoDir = DIR_AUTO_NONE;
|
||||||
std::string name = "";
|
std::string name = "";
|
||||||
Vector2D resolution = Vector2D(1280, 720);
|
Vector2D resolution = Vector2D(1280, 720);
|
||||||
Vector2D offset = Vector2D(0, 0);
|
Vector2D offset = Vector2D(0, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user