Lines Matching refs:layout

42  * struct vmwgfx_layout_box - Struct representing a GUI layout rect
54 * struct vmwgfx_layout - Struct representing a complete GUI layout
59 * @boxes: Array of GUI layout rects.
69 * vmwgfx_layout_debug - Log debug info of a layout struct.
72 * layout should be logged for.
80 xf86DrvMsg(pScrn->scrnIndex, X_DEBUG, "New layout.\n");
123 struct vmwgfx_layout *layout;
140 layout = calloc(1, size);
141 if (!layout)
144 layout->connected = connected;
146 struct vmwgfx_layout_box *box = &layout->boxes[i];
151 free(layout);
164 layout->root_width = max_x;
165 layout->root_height = max_y;
167 return layout;
175 * @layout: Layout to use for the new configuration.
181 vmwgfx_layout_configuration(ScrnInfoPtr pScrn, struct vmwgfx_layout *layout)
194 for (i = 0, box = layout->boxes; i < config->num_output; ++i, ++box) {
197 if (i >= layout->connected)
222 * vmwgfx_layout_handler - Obtain and set a new layout.
226 * Obtains a new layout from DRM. If the layout differs from the current one,
227 * Try to set the new layout. If that fails, (typically due to root pixmap
228 * resizing issues) try hard to revert to the old layout. Finally
230 * from setting up the layout in a different way.
238 struct vmwgfx_layout *layout;
244 * Construct a layout from the new information and determine whether we
247 layout = vmwgfx_layout_from_kms(pScrn);
248 if (layout && (!ms->layout || !vmwgfx_layouts_equal(ms->layout, layout))) {
249 vmwgfx_layout_debug(pScrn, layout);
252 if (!vmwgfx_rr_screen_set_size(pScreen, layout->root_width,
253 layout->root_height)) {
256 free(layout);
258 vmwgfx_layout_configuration(pScrn, layout);
259 if (ms->layout)
260 free(ms->layout);
261 ms->layout = layout;
265 } else if (layout) {
266 free(layout);