[libwnck] [tasklist] Do not lose the pinned status when dragging a window
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] [tasklist] Do not lose the pinned status when dragging a window
- Date: Tue, 9 Mar 2010 01:21:30 +0000 (UTC)
commit a72037ad0d777645e20670a05ea4f8151cc91e00
Author: Vincent Untz <vuntz gnome org>
Date: Tue Mar 9 02:18:28 2010 +0100
[tasklist] Do not lose the pinned status when dragging a window
When dragging and dropping a window to reorder the tasklist, if the
window was pinned, then it will get unpinned, which is wrong.
Of course, this is not perfect since placing this pinned window in a
specific spot in a workspace will also change its sort order on other
workspaces. But there's no way to make this work correctly: if a user
wants to have a pinned window at a specific spot in his tasklist, this
just cannot work in all different workspaces at the same time.
https://bugzilla.gnome.org/show_bug.cgi?id=603516
libwnck/tasklist.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index a3bf584..cf1dcfb 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -3652,7 +3652,8 @@ wnck_task_drag_data_received (GtkWidget *widget,
}
wnck_window_set_sort_order (found_window, new_order);
- if (!tasklist->priv->include_all_workspaces)
+ if (!tasklist->priv->include_all_workspaces &&
+ !wnck_window_is_pinned (found_window))
{
WnckWorkspace *active_space;
active_space = wnck_screen_get_active_workspace (tasklist->priv->screen);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]