[PATCH v2 1/2] ephyr: allow starting window at other than 0, 0 location (via kdrive -origin option)

Laércio de Sousa lbsousajr at gmail.com
Wed Apr 30 13:04:41 PDT 2014


2014-04-30 14:04 GMT-03:00 Keith Packard <keithp at keithp.com>:

> The -origin option specifies where the screen appears in the cursor
> address space when running multiple kdrive screens in Xinerama mode. If
> you want an option to specify where the screen appears in the enclosing
> window system, you'll need a new option.
>

OK, I'll take care about it.


>  Also, you probably want to make the configuration specify the X/Y
> positions only if the user actually set them so that the window manager
> will automatically position the window sensibly by default, and only
> force the window position when directed by the user.
>

I dont' know if I understand what you mean, but I just realized I can force
window position
by setting it after xcb_map_window() call. Example:

{
        uint32_t mask = XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT;
        uint32_t values[2] = {width, height};
        xcb_configure_window(HostX.conn, scrpriv->win, mask, values);
}

xcb_map_window(HostX.conn, scrpriv->win);

{
        uint32_t xy_mask = XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y;
        uint32_t xy_values[2] = {x, y};
        xcb_configure_window(HostX.conn, scrpriv->win, xy_mask, xy_values);
}

Is this what you mean?

CANTATE DOMINO CANTICUM NOVUM
QUIA MIRABILIA FECIT

Laércio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140430/a67fe2e2/attachment.html>


More information about the xorg-devel mailing list