xpra icon
Bug tracker and wiki

Opened 8 months ago

Closed 8 months ago

#2212 closed defect (needinfo)

Values x and y for positioning window are always 0 (zero)

Reported by: Dušan Vejnovič Owned by: Dušan Vejnovič
Priority: minor Milestone: 3.0
Component: client Version: 2.4.x
Keywords: Cc:

Description (last modified by Antoine Martin)

I have trouble to save the window positioning, I can only save window dimensions.

I got initial position of new window with the new-window packet where x and y values are 0 (zero). When move this window to the new location I send new values for x, y and old values for the window size (width and height values not changed) with the configure-window packet. In that case server don't send any new packet, no answer from the server. When send new data for changed window's dimensions then I got answer from the server in window-move-resize packet where the window position values fox x and y are 0 (zero). For window dimensions I got correct values.

I found temporary solution: when send values fox x and y that are not zero I also have to change values for window's width and height. In that case I got correct values in window-move-resize packet: values for x and y are equals to the values from the configure-window packet.

Bellow are the values for the client capabilities:

version=2.4.3,
desktop_size=[663, 895],
dpi=96,
client_type=Java,
screen_sizes=[663, 895],
auto_refresh_delay=500,
png=70,
encoding=png,
encoding.icons.max_size=[40, 40],
encoding.flush=true,
encoding.transparency=true,
encodings=[jpeg, png, rgb, rgb24, rgb32],
encodings.core=[jpeg, png, rgb, rgb24, rgb32],
encodings.cursor=[png],
encoding.rgb_zlib=true,
encoding.rgb24zlib=true,
encodings.window-icon=[png],
zlib=true,
lzo=false,
compression_level=1,
windows=true,
clipboard=false,
notifications=false,
cursors=true,
named_cursors=false,
bell=true,
bencode=false,
rencode=false,
chunked_compression=false,
platform=linux,
uuid=(value hidden)
keyboard=true,
system_tray=false,
xkbmap_layout=si

Change History (2)

comment:1 Changed 8 months ago by Antoine Martin

Description: modified (diff)
Milestone: 2.53.0
Owner: changed from Antoine Martin to Dušan Vejnovič
Priority: majorminor
png=70,

I'm not sure what that is for - probably doesn't do anything.

When move this window to the new location I send new values for x, y and old values for the window size (width and height values not changed) with the configure-window packet.
In that case server don't send any new packet, no answer from the server.

That's expected.

When send new data for changed window's dimensions then I got answer from the server in window-move-resize packet where the window position values fox x and y are 0 (zero).

Then that means that the server - or the application decides that it wants to override the new location and force it back to 0,0.

  • what is the application you are testing with?
  • can you reproduce with a simple xterm?
  • can you reproduce with the python client? (add -d geometry debug output)
  • can you share your Java client code?

comment:2 Changed 8 months ago by Antoine Martin

Resolution: needinfo
Status: newclosed

Not heard back, closing.

Note: See TracTickets for help on using tickets.