Group :: System/Libraries
RPM: libwnck
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: libwnck-2.18-fix-intersect.diff
Download
Download
Index: libwnck/tasklist.c
===================================================================
--- libwnck/tasklist.c (révision 1351)
+++ libwnck/tasklist.c (copie de travail)
@@ -3831,6 +3831,7 @@ wnck_task_expose (GtkWidget *widg
GdkGC *lgc, *dgc;
int x, y, i, j;
WnckTask *task;
+ GdkRectangle rect;
task = WNCK_TASK (data);
@@ -3856,10 +3857,7 @@ wnck_task_expose (GtkWidget *widg
/* Fall through to get screenshot
*/
case WNCK_TASK_WINDOW:
- if ((event->area.x <= widget->allocation.x) &&
- (event->area.y <= widget->allocation.y) &&
- (event->area.width >= widget->allocation.width) &&
- (event->area.height >= widget->allocation.height))
+ if (gdk_rectangle_intersect (&event->area, &widget->allocation, &rect))
{
if (task->start_needs_attention)
{