dont persist the linear state, not sure why i did it and it breaks stuff. hope changing this doesnt break other stuff!!! closes #1025
This commit is contained in:
parent
6f8d9cde7d
commit
fb0cd13254
1 changed files with 1 additions and 3 deletions
|
@ -605,7 +605,6 @@ guint screen_cycle_desktop(ObDirection dir, gboolean wrap, gboolean linear,
|
|||
gboolean dialog, gboolean done, gboolean cancel)
|
||||
{
|
||||
static gboolean first = TRUE;
|
||||
static gboolean lin;
|
||||
static guint origd, d;
|
||||
guint r, c;
|
||||
|
||||
|
@ -617,13 +616,12 @@ guint screen_cycle_desktop(ObDirection dir, gboolean wrap, gboolean linear,
|
|||
}
|
||||
if (first) {
|
||||
first = FALSE;
|
||||
lin = linear;
|
||||
d = origd = screen_desktop;
|
||||
}
|
||||
|
||||
get_row_col(d, &r, &c);
|
||||
|
||||
if (lin) {
|
||||
if (linear) {
|
||||
switch (dir) {
|
||||
case OB_DIRECTION_EAST:
|
||||
if (d < screen_num_desktops - 1)
|
||||
|
|
Loading…
Reference in a new issue