+#include "window.h"
+#include "window_private.h"
#include <vector>
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <msp/core/systemerror.h>
#include "display_private.h"
-#include "window.h"
-#include "window_private.h"
using namespace std;
DisplayHandle dpy = display.get_private().display;
priv->wm_delete_window = XInternAtom(dpy, "WM_DELETE_WINDOW", true);
- priv->invisible_cursor = 0;
- priv->reparented = false;
- priv->rel_x = 0;
- priv->rel_y = 0;
XSetWindowAttributes attr;
attr.override_redirect = options.fullscreen;
{
XSizeHints hints;
hints.flags = PMinSize|PMaxSize;
- hints.min_width=hints.max_width = options.width;
- hints.min_height=hints.max_height = options.height;
+ hints.min_width = hints.max_width = options.width;
+ hints.min_height = hints.max_height = options.height;
XSetWMNormalHints(dpy, priv->window, &hints);
}
}
int screen = DefaultScreen(dpy);
Pixmap pm = XCreatePixmap(dpy, priv->window, 1, 1, 1);
- GC gc = XCreateGC(dpy, pm, 0, 0);
+ GC gc = XCreateGC(dpy, pm, 0, nullptr);
XSetFunction(dpy, gc, GXclear);
XDrawPoint(dpy, pm, gc, 0, 0);
XFreeGC(dpy, gc);