aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaX11.h
diff options
context:
space:
mode:
authorSasongko Bawono <sasongko262@gmail.com>2017-02-26 08:33:25 +0700
committerSasongko Bawono <sasongko262@gmail.com>2017-02-26 08:33:25 +0700
commiteb7d5a1270d17ecd16912008d8587cc543cafc77 (patch)
tree64be065a2e3fe58933bb5be6f30cc76a1af33f86 /src-qt5/core/libLumina/LuminaX11.h
parent modified DEPENDENCIES for Slackware (diff)
parentMerge remote-tracking branch 'origin/master' (diff)
downloadlumina-eb7d5a1270d17ecd16912008d8587cc543cafc77.tar.gz
lumina-eb7d5a1270d17ecd16912008d8587cc543cafc77.tar.bz2
lumina-eb7d5a1270d17ecd16912008d8587cc543cafc77.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src-qt5/core/libLumina/LuminaX11.h')
-rw-r--r--src-qt5/core/libLumina/LuminaX11.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaX11.h b/src-qt5/core/libLumina/LuminaX11.h
index 2c741111..2f66ce06 100644
--- a/src-qt5/core/libLumina/LuminaX11.h
+++ b/src-qt5/core/libLumina/LuminaX11.h
@@ -23,7 +23,6 @@
#include <QObject>
#include <QFlags>
-
#include <xcb/xcb_ewmh.h>
//SYSTEM TRAY STANDARD DEFINITIONS
@@ -67,6 +66,18 @@ public:
|| width_inc>=0 || height_inc>=0 || min_aspect_num>=0 || min_aspect_den>=0 || max_aspect_num>=0 || max_aspect_den>=0 \
|| base_width>=0 || base_height>=0 || win_gravity>0 );
}
+ bool validMaxSize(){
+ return (max_width>0 && max_width>=min_width) && (max_height>0 && max_height>=min_height);
+ }
+ bool validMinSize(){
+ return (min_width>0 && min_height>0);
+ }
+ bool validBaseSize(){
+ return (base_width>0 && base_height>0);
+ }
+ bool validSize(){ //only check this if the base sizes are invalid (this is the old spec and should not be used any more)
+ return (x>0 && y>0);
+ }
};
//simple data structure for passing around the XRANDR information
bgstack15