Commit 9d035cd0 authored by Felipe Borges's avatar Felipe Borges 👣

frdp-session: Lets not do any display sizing for now

This is a bit more complicated in Wayland, so I rather investigate
a better alternative to later handle smart-sizing and scaling in
a clean way.
parent 281a8958
......@@ -31,8 +31,6 @@ on_activate (GtkApplication *app)
if (window == NULL)
window = g_object_new (GTK_TYPE_APPLICATION_WINDOW,
"application", app,
"default-width", 600,
"default-height", 300,
NULL);
display = frdp_display_new ();
......
......@@ -61,14 +61,6 @@ frdp_session_draw (GtkWidget *widget,
gpointer user_data)
{
FrdpSession *self = (FrdpSession*) user_data;
GtkWidget *parent;
gint window_width, window_height;
parent = gtk_widget_get_parent (widget);
window_width = gtk_widget_get_allocated_width (parent);
window_height = gtk_widget_get_allocated_height (parent);
gtk_widget_set_size_request (widget, window_width, window_height);
cairo_set_source_surface (cr, self->priv->surface, 0, 0);
cairo_paint (cr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment