How do I get a drawer to open in the current workspace ?

Asked by Richard

Hello,

My drawers open in a fixed workspace. I would like them to open in the current workspace instead.

Is there a way to change this behaviour ?

Question information

Language:
English Edit question
Status:
Answered
For:
Drawers Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
icb410 (ian-berke) said :
#1

Hi,

Can you please provide more detail? Drawers open for me on any workspace I'm currently in, right next to their icon on the launcher bar. Is there something special about your setup? On my computer, I have 2x2 workspaces and it also works if I increase the number of desktops to 2 in ccsm. It also works properly for me if I have a multi-monitor setup with multiple launcher bars.

You can also try running the drawer from the command line with debugging output to see if there's anything useful there:

/opt/extras.ubuntu.com/drawers/bin/drawers -d -f ~/.local/share/applications/NAMEOFYOURDRAWER.desktop

Please replace NAMEOFYOURDRAWER with the name of your drawer (include the .desktop extension).

Best,
Ian

Revision history for this message
Richard (rimcaw) said :
#2

There is nothing fancy to my setup as far as I know: Unity, Ubuntu 12.04 on a laptop.

There are 4 workspaces:

1 | 2
------
3 | 4

If current is 1, drawers open in 3 and vice-versa.
If current is 2, drawers open in 4 and vice-versa.

The debug output is:

Debugging messages on
Read config
intializing config
Local settings False
File: /home/mystic/.local/share/applications/Wine.desktop
Addfiles:
Detected 1 monitors
Checking if settings need to be migrated ...no
Checking if internal files need to be migrated ...no
Backend : gconf
Integration : true
Profile : unity
Adding plugins
Initializing core options...done
Initializing unityshell options...done
Screen Width: 1366
Autolayout, Max Icons: 9
Calculated size: 1116
Number of columns: 4
number of items: 4
key press detected: 65507
key press detected: 65513
Quitting...

Revision history for this message
icb410 (ian-berke) said :
#3

Hmm... By any chance do you have a lot of icons on your launcher (so that
they scrunch up). And if you do, is the drawer near the bottom of the
launcher? I am able to reproduce the behavior you describe like that. The
issue comes from how I determine the position of the drawer icon on the
launcher. It takes the index of the favorite in the favorites list and
multiplies by icon size to get position. However, if you scroll down the
favorites, the index positioning doesn't change while the icon clearly
moves up. If there are many favorites on the launcher bar, it thinks that
the icon is beyond the bottom of the screen and opens on the next
workspace.

Temporarily you can fix by putting the drawer higher on your favorites bar
so that it is not "squished" by the accordion effect. I'm going to open a
bug-report and see if I can put in a y limit to where the drawer will open.
I will release a small bug fix version shortly after I fix.

Best,
Ian

On Fri, Jan 11, 2013 at 11:25 AM, Richard <
<email address hidden>> wrote:

> Question #218945 on Drawers changed:
> https://answers.launchpad.net/drawers/+question/218945
>
> Richard gave more information on the question:
> There is nothing fancy to my setup as far as I know: Unity, Ubuntu 12.04
> on a laptop.
>
> There are 4 workspaces:
>
> 1 | 2
> ------
> 3 | 4
>
> If current is 1, drawers open in 3 and vice-versa.
> If current is 2, drawers open in 4 and vice-versa.
>
> The debug output is:
>
> Debugging messages on
> Read config
> intializing config
> Local settings False
> File: /home/mystic/.local/share/applications/Wine.desktop
> Addfiles:
> Detected 1 monitors
> Checking if settings need to be migrated ...no
> Checking if internal files need to be migrated ...no
> Backend : gconf
> Integration : true
> Profile : unity
> Adding plugins
> Initializing core options...done
> Initializing unityshell options...done
> Screen Width: 1366
> Autolayout, Max Icons: 9
> Calculated size: 1116
> Number of columns: 4
> number of items: 4
> key press detected: 65507
> key press detected: 65513
> Quitting...
>
> --
> You received this question notification because you are an answer
> contact for Drawers.
>

Revision history for this message
Richard (rimcaw) said :
#4

Yes, the icons were at the bottom of an accordion. Since I moved them higher on the launcher, all goes well.

Thanks.

Revision history for this message
icb410 (ian-berke) said :
#5

Great... check out the patch I provided in the linked bug report to see if that fixes it too.

Can you help with this problem?

Provide an answer of your own, or ask Richard for more information if necessary.

To post a message you must log in.