diff options
author | Ken Moore <ken@ixsystems.com> | 2017-02-01 16:13:52 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-02-01 16:13:52 -0500 |
commit | 014ce3d9363b15912a53cc8885358b0436b3bb27 (patch) | |
tree | 3fba59a0ffedadac98cb904db64c10ccc29417a0 /src-qt5/core/libLumina/LuminaX11.h | |
parent | Add a new "NativeWindow" class to the library. This is a pure Qt container cl... (diff) | |
download | lumina-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.h | 12 |
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 |