Skip to content

Commit

Permalink
#1874: add better debug logging
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19645 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 14, 2018
1 parent bbef38e commit 9fc898b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/xpra/client/gtk_base/gtk_client_window_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,12 +1686,14 @@ def paint_backing_offset_border(self, backing, context):
if left!=0 or top!=0 or right!=0 or bottom!=0:
context.save()
context.set_source_rgb(*PADDING_COLORS)
for rx, ry, rw, rh in (
coords = (
(0, 0, left, h), #left hand side padding
(0, 0, w, top), #top padding
(w-right, 0, right, h), #RHS
(0, h-bottom, w, bottom), #bottom
):
)
geomlog("paint_backing_offset_border(%s, %s) offsets=%s, size=%s, coords=%s", backing, context, backing.offsets, (w,h), coords)
for rx, ry, rw, rh in coords:
if rw>0 and rh>0:
context.rectangle(rx, ry, rw, rh)
context.fill()
Expand All @@ -1700,7 +1702,9 @@ def paint_backing_offset_border(self, backing, context):
def clip_to_backing(self, backing, context):
w,h = self.get_size()
left, top, right, bottom = backing.offsets
context.rectangle(left, top, w-left-right, h-top-bottom)
clip_rect = (left, top, w-left-right, h-top-bottom)
context.rectangle(*clip_rect)
geomlog("clip_to_backing%s rectangle=%s", (backing, context), clip_rect)
context.clip()

def move_resize(self, x, y, w, h, resize_counter=0):
Expand Down

0 comments on commit 9fc898b

Please sign in to comment.