mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
[broadway] Hack up window placement for demo
This commit is contained in:
parent
b82ed84709
commit
08a180a699
@ -348,6 +348,14 @@ _gdk_window_impl_new (GdkWindow *window,
|
||||
private->window_type == GDK_WINDOW_TEMP);
|
||||
g_assert (GDK_WINDOW_TYPE (private->parent) == GDK_WINDOW_ROOT);
|
||||
|
||||
/* Instead of window manager placement we have this mini hack
|
||||
so that the main/first window is not covered in the demos. */
|
||||
if (impl->id > 1)
|
||||
{
|
||||
private->x = 100;
|
||||
private->y = 20;
|
||||
}
|
||||
|
||||
if (display_broadway->output)
|
||||
broadway_client_new_surface (display_broadway->output,
|
||||
impl->id,
|
||||
|
Loading…
Reference in New Issue
Block a user