Skip to content

Commit

Permalink
always set a default initial resolution
Browse files Browse the repository at this point in the history
because otherwise when running on Debian, the 'Xvfb' command will choose 8K
  • Loading branch information
totaam committed Aug 16, 2024
1 parent 533af10 commit cdc3998
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion xpra/x11/desktop/desktop_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def server_init(self) -> None:
super().server_init()
from xpra.x11.vfb_util import set_initial_resolution, get_desktop_vfb_resolutions
screenlog(f"server_init() randr={self.randr}, initial-resolutions={self.initial_resolutions}")
if not self.randr or self.initial_resolutions == () or not features.display:
if not self.randr or not features.display:
return
res = self.initial_resolutions or get_desktop_vfb_resolutions(default_refresh_rate=self.refresh_rate)
if len(res) > 1:
Expand Down
2 changes: 0 additions & 2 deletions xpra/x11/desktop/monitor_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def server_init(self) -> None:
super().server_init()
from xpra.x11.vfb_util import set_initial_resolution, get_desktop_vfb_resolutions
screenlog(f"server_init() randr={self.randr}, initial-resolutions={self.initial_resolutions}")
if self.initial_resolutions == ():
return
res = self.initial_resolutions or get_desktop_vfb_resolutions(default_refresh_rate=self.refresh_rate)
with xlog:
set_initial_resolution(res, self.dpi or self.default_dpi)
Expand Down

0 comments on commit cdc3998

Please sign in to comment.