Opened 12 years ago

Last modified 8 years ago

#8365 in-progress enhancement

Workspaces size doesn't update as you change the options (easy)

Reported by: jstressman Owned by: leavengood
Priority: normal Milestone: R1
Component: Applications/Workspaces Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

If you change the number of columns and rows for Workspaces, it doesn't update the size of the Workspaces window to correctly fit the workspaces in there in relation to their aspect ratio. So you end up with a bunch of squished workspaces until you actually click on the Workspaces window to resize it... then it suddenly snaps to the proper dimensions.

Shouldn't this update as you make the settings changes? Perhaps not exceeding the starting width x height dimensions so as not to end up outside the current desktop borders?

Attachments (3)

workspaces7.png (29.7 KB ) - added by jstressman 12 years ago.
workspaceszoom1.patch (4.2 KB ) - added by devine 12 years ago.
Updates the size (by calling Zoom()) when the workspace layout is updated. Depends on patch in #8188
workspaceszoom1.2.patch (4.2 KB ) - added by devine 12 years ago.
Updates the size (by calling Zoom()) when the workspace layout is updated. Depends on patch in #8188

Download all attachments as: .zip

Change History (11)

by jstressman, 12 years ago

Attachment: workspaces7.png added

comment:1 by jstressman, 12 years ago

This is in hrev43809 by the way.

comment:2 by axeld, 12 years ago

This could certainly be done, best based on the current aspect ratio. It could simply move the window to prevent it from leaving the screen.

comment:3 by axeld, 12 years ago

Summary: Workspaces size doesn't update as you change the optionsWorkspaces size doesn't update as you change the options (easy)

comment:4 by devine, 12 years ago

I will a attach a patch for this. It is depended on the changes made in the patch #8188 though.

by devine, 12 years ago

Attachment: workspaceszoom1.patch added

Updates the size (by calling Zoom()) when the workspace layout is updated. Depends on patch in #8188

comment:5 by devine, 12 years ago

patch: 01

by devine, 12 years ago

Attachment: workspaceszoom1.2.patch added

Updates the size (by calling Zoom()) when the workspace layout is updated. Depends on patch in #8188

comment:6 by leavengood, 12 years ago

Owner: changed from axeld to leavengood
Status: newin-progress

Taking ownership.

comment:7 by pulkomandy, 8 years ago

patch: 10

comment:8 by pulkomandy, 8 years ago

Several comments on the patch (which proabably does not apply anymore to the current codebase).

It does not feel right to have the notification sent from the screen preferences. There could be other places able to control the workspace count. Instead, the message should be sent from app_server when the workspaces are actually created or deleted.

Handling of the window position in this case will be tricky.

  • If the window was at the screen edge for use with auto-raise, it should snap to said edge and change its size so the workspaces size in the preview stays the same.
  • If it is not at any particular screen edge, Zoom will move it there if the auto-raise feature is enabled. Otherwise, it should only make sure that the window fits into the screen.
Note: See TracTickets for help on using tickets.