Skip to content
Snippets Groups Projects
Commit d99765f4 authored by Bruno Ramos's avatar Bruno Ramos Committed by Jérôme Guelfucci
Browse files

Fix crash with some WM (bug #8080).

parent 14a5cffc
No related branches found
No related tags found
No related merge requests found
...@@ -381,6 +381,18 @@ static GdkPixbuf ...@@ -381,6 +381,18 @@ static GdkPixbuf
rec_height += rectangle.y; rec_height += rectangle.y;
} }
if (rec_x < 0)
{
rec_width = rec_width + rec_x;
rec_x = 0;
}
if (rec_y < 0)
{
rec_height = rec_height + rec_y;
rec_y = 0;
}
if (x_orig + rec_x + rec_width > gdk_screen_width ()) if (x_orig + rec_x + rec_width > gdk_screen_width ())
rec_width = gdk_screen_width () - x_orig - rec_x; rec_width = gdk_screen_width () - x_orig - rec_x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment