WiP
This commit is contained in:
parent
0cd3c99119
commit
bf41ce9544
3 changed files with 10 additions and 3 deletions
|
@ -1557,7 +1557,7 @@ static void processEvent(XEvent *event)
|
||||||
// the position into root (screen) coordinates
|
// the position into root (screen) coordinates
|
||||||
if (!event->xany.send_event && window->x11.parent != _glfw.x11.root)
|
if (!event->xany.send_event && window->x11.parent != _glfw.x11.root)
|
||||||
{
|
{
|
||||||
Window dummy;
|
Window dummy = 0;
|
||||||
XTranslateCoordinates(_glfw.x11.display,
|
XTranslateCoordinates(_glfw.x11.display,
|
||||||
window->x11.parent,
|
window->x11.parent,
|
||||||
_glfw.x11.root,
|
_glfw.x11.root,
|
||||||
|
|
|
@ -8,7 +8,7 @@ pw.script:load_all()
|
||||||
print("hello pixwerx!")
|
print("hello pixwerx!")
|
||||||
|
|
||||||
local w = pw.window.new()
|
local w = pw.window.new()
|
||||||
w.visible = false
|
--w.visible = false
|
||||||
|
|
||||||
-- set title
|
-- set title
|
||||||
w.title = "pixwerx 0.1"
|
w.title = "pixwerx 0.1"
|
||||||
|
|
|
@ -146,8 +146,16 @@ struct window::impl {
|
||||||
if (!glfwInit())
|
if (!glfwInit())
|
||||||
{
|
{
|
||||||
debug::e() << "Initalization error";
|
debug::e() << "Initalization error";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int glfw_major, glfx_minor,glfw_rev;
|
||||||
|
glfwGetVersion(&glfw_major,&glfx_minor,&glfw_rev);
|
||||||
|
|
||||||
|
|
||||||
|
debug::d() << "GLFW " << glfw_major << "." << glfx_minor << "." << glfw_rev;
|
||||||
|
debug::d() << "GLFW header " << GLFW_VERSION_MAJOR << "." << GLFW_VERSION_MINOR << "." << GLFW_VERSION_REVISION;
|
||||||
|
|
||||||
update_display_list();
|
update_display_list();
|
||||||
|
|
||||||
// request specific version 3.3
|
// request specific version 3.3
|
||||||
|
@ -206,7 +214,6 @@ struct window::impl {
|
||||||
{
|
{
|
||||||
if (_window && !glfwWindowShouldClose(_window))
|
if (_window && !glfwWindowShouldClose(_window))
|
||||||
{
|
{
|
||||||
|
|
||||||
input::get().reset();
|
input::get().reset();
|
||||||
|
|
||||||
// get new events
|
// get new events
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue