gdkgc-x11: no XChangeGC when only the origins change
This commit is contained in:
parent
596204312e
commit
c8d098e5fb
1 changed files with 6 additions and 4 deletions
|
|
@ -369,10 +369,12 @@ gdk_x11_gc_set_values (GdkGC *gc,
|
|||
|
||||
gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask);
|
||||
|
||||
XChangeGC (GDK_GC_XDISPLAY (gc),
|
||||
GDK_GC_XGC (gc),
|
||||
xvalues_mask,
|
||||
&xvalues);
|
||||
/* origins alone only mark the GC for the next flush */
|
||||
if (xvalues_mask)
|
||||
XChangeGC (GDK_GC_XDISPLAY (gc),
|
||||
GDK_GC_XGC (gc),
|
||||
xvalues_mask,
|
||||
&xvalues);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue