Address code formatting
This commit is contained in:
		
							parent
							
								
									1bf7276d53
								
							
						
					
					
						commit
						cd9b1a6fd3
					
				
					 12 changed files with 80 additions and 90 deletions
				
			
		| 
						 | 
				
			
			@ -5,8 +5,8 @@
 | 
			
		|||
 */
 | 
			
		||||
 | 
			
		||||
#include "shell.h"
 | 
			
		||||
#include <qglobal.h>
 | 
			
		||||
#include <QByteArray>
 | 
			
		||||
#include <qglobal.h>
 | 
			
		||||
 | 
			
		||||
using namespace LayerShellQt;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,11 +11,11 @@
 | 
			
		|||
 | 
			
		||||
namespace LayerShellQt
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the right environment so the shells created from now on use wlr-layer-shell.
 | 
			
		||||
 */
 | 
			
		||||
class LAYERSHELLQT_EXPORT Shell {
 | 
			
		||||
class LAYERSHELLQT_EXPORT Shell
 | 
			
		||||
{
 | 
			
		||||
public:
 | 
			
		||||
    static void useLayerShell();
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,10 +5,10 @@
 | 
			
		|||
 */
 | 
			
		||||
 | 
			
		||||
#include "window.h"
 | 
			
		||||
#include <private/qwaylandwindow_p.h>
 | 
			
		||||
#include <private/qwaylandshellsurface_p.h>
 | 
			
		||||
#include <layershellqt_logging.h>
 | 
			
		||||
#include "../qwaylandlayersurface_p.h"
 | 
			
		||||
#include <layershellqt_logging.h>
 | 
			
		||||
#include <private/qwaylandshellsurface_p.h>
 | 
			
		||||
#include <private/qwaylandwindow_p.h>
 | 
			
		||||
 | 
			
		||||
using namespace LayerShellQt;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -47,7 +47,8 @@ void Window::setKeyboardInteractivity(bool enabled)
 | 
			
		|||
 | 
			
		||||
Window::Window(WindowPrivate *d)
 | 
			
		||||
    : d(d)
 | 
			
		||||
{}
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Window *Window::get(QWindow *window)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -56,7 +57,7 @@ Window *Window::get(QWindow *window)
 | 
			
		|||
        qCDebug(LAYERSHELLQT) << "window not a wayland window" << window;
 | 
			
		||||
        return nullptr;
 | 
			
		||||
    }
 | 
			
		||||
    QWaylandLayerSurface* s = qobject_cast<QWaylandLayerSurface *>(ww->shellSurface());
 | 
			
		||||
    QWaylandLayerSurface *s = qobject_cast<QWaylandLayerSurface *>(ww->shellSurface());
 | 
			
		||||
    if (!s) {
 | 
			
		||||
        qCDebug(LAYERSHELLQT) << "window not using wlr-layer-shell" << window << ww->shellSurface();
 | 
			
		||||
        return nullptr;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue