moving = false;
priv = new Private;
+ if(options.fullscreen && !options.fullscreen_monitor)
+ options.fullscreen_monitor = display.get_desktop_mode().monitor;
+
platform_init();
display.add_window(*this);
attr.override_redirect = options.fullscreen;
attr.event_mask = ButtonPressMask|ButtonReleaseMask|PointerMotionMask|KeyPressMask|KeyReleaseMask|StructureNotifyMask|EnterWindowMask|ExposureMask|FocusChangeMask;
+ // User position is set when the window is mapped
+ int x = 0;
+ int y = 0;
+ if(options.fullscreen && !options.fullscreen_exclusive)
+ {
+ const Monitor::Settings &ms = options.fullscreen_monitor->current_settings;
+ x = ms.x;
+ y = ms.y;
+ }
+
priv->window = XCreateWindow(dpy,
display.get_private().root_window,
- 0, 0, // User position is set when the window is mapped
+ x, y,
options.width, options.height,
0,
CopyFromParent,