aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaX11.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-02-01 16:13:52 -0500
committerKen Moore <ken@ixsystems.com>2017-02-01 16:13:52 -0500
commit014ce3d9363b15912a53cc8885358b0436b3bb27 (patch)
tree3fba59a0ffedadac98cb904db64c10ccc29417a0 /src-qt5/core/libLumina/LuminaX11.h
parentAdd a new "NativeWindow" class to the library. This is a pure Qt container cl... (diff)
downloadlumina-014ce3d9363b15912a53cc8885358b0436b3bb27.tar.gz
lumina-014ce3d9363b15912a53cc8885358b0436b3bb27.tar.bz2
lumina-014ce3d9363b15912a53cc8885358b0436b3bb27.zip
Another large batch of work on Lumina2:
The NativeWindow intermediary seems to be working really well, now just to start adding the the various event detection parsing in to modify that object on-demand. There is still a window focus issue too - the setActive routine is not properly setting that window to have focus yet - need to examine further.
Diffstat (limited to 'src-qt5/core/libLumina/LuminaX11.h')
-rw-r--r--src-qt5/core/libLumina/LuminaX11.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LuminaX11.h b/src-qt5/core/libLumina/LuminaX11.h
index 2c741111..dd9f8213 100644
--- a/src-qt5/core/libLumina/LuminaX11.h
+++ b/src-qt5/core/libLumina/LuminaX11.h
@@ -67,6 +67,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