chore: XWindowsScreen declare vars on seperate lines
This commit is contained in:
parent
74bbd5af25
commit
1f92f2a2ed
1 changed files with 8 additions and 3 deletions
|
|
@ -917,7 +917,8 @@ void XWindowsScreen::saveShape()
|
||||||
// screen instead of the logical screen.
|
// screen instead of the logical screen.
|
||||||
m_xinerama = false;
|
m_xinerama = false;
|
||||||
#if HAVE_X11_EXTENSIONS_XINERAMA_H
|
#if HAVE_X11_EXTENSIONS_XINERAMA_H
|
||||||
int eventBase, errorBase;
|
int eventBase;
|
||||||
|
int errorBase;
|
||||||
if (XineramaQueryExtension(m_display, &eventBase, &errorBase) && XineramaIsActive(m_display)) {
|
if (XineramaQueryExtension(m_display, &eventBase, &errorBase) && XineramaIsActive(m_display)) {
|
||||||
int numScreens;
|
int numScreens;
|
||||||
XineramaScreenInfo *screens;
|
XineramaScreenInfo *screens;
|
||||||
|
|
@ -962,7 +963,8 @@ void XWindowsScreen::setShape(int32_t width, int32_t height)
|
||||||
// screen instead of the logical screen.
|
// screen instead of the logical screen.
|
||||||
m_xinerama = false;
|
m_xinerama = false;
|
||||||
#if HAVE_X11_EXTENSIONS_XINERAMA_H
|
#if HAVE_X11_EXTENSIONS_XINERAMA_H
|
||||||
int eventBase, errorBase;
|
int eventBase;
|
||||||
|
int errorBase;
|
||||||
if ((XineramaQueryExtension(m_display, &eventBase, &errorBase) != 0) && (XineramaIsActive(m_display) != 0)) {
|
if ((XineramaQueryExtension(m_display, &eventBase, &errorBase) != 0) && (XineramaIsActive(m_display) != 0)) {
|
||||||
int numScreens;
|
int numScreens;
|
||||||
XineramaScreenInfo *screens;
|
XineramaScreenInfo *screens;
|
||||||
|
|
@ -990,7 +992,10 @@ Window XWindowsScreen::openWindow() const
|
||||||
attr.cursor = createBlankCursor();
|
attr.cursor = createBlankCursor();
|
||||||
|
|
||||||
// adjust attributes and get size and shape
|
// adjust attributes and get size and shape
|
||||||
int32_t x, y, w, h;
|
int32_t x;
|
||||||
|
int32_t y;
|
||||||
|
int32_t w;
|
||||||
|
int32_t h;
|
||||||
if (m_isPrimary) {
|
if (m_isPrimary) {
|
||||||
// grab window attributes. this window is used to capture user
|
// grab window attributes. this window is used to capture user
|
||||||
// input when the user is focused on another client. it covers
|
// input when the user is focused on another client. it covers
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue