Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37040540
en ru br
ALT Linux repos
S:2.31.0-alt3
5.0: 2.26.1-alt1
4.0: 2.16.0-alt1
3.0: 2.10.2-alt1

Group :: System/Libraries
RPM: libwnck

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: libwnck-2.18-fix-intersect.diff
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)
             {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin