You are not logged in.
Hello dear community,
In my Dual-Monitor-Setup, I just use 2 screens, no xinerama, no twinview.
Now I thought it would be cool to have only panels on screen 2, so that the full space of screen 1 is available!
Launchers are ok, I can just execute "DISPLAY=0.0 terminal" in example.
But the iconbox (or tasklist)! I need a iconbox on a panel on screen 2, showing the applications of screen 1!
Is that somehow possible?
Looking at the tastlist-code, I believe the screen from which the windows are shown is set with "netk_tasklist_set_screen", correct?
From where is this function called? Would it be possible to call it with the other screen?
Thanks!
Nathan
Offline
Try some code like this:
static void
tasklist_screen_changed (GtkWidget *plugin, GdkScreen *screen,
Tasklist *tasklist)
{
NetkScreen *ns;
screen = gtk_widget_get_screen (plugin);
if (G_UNLIKELY (screen == NULL))
screen = gdk_screen_get_default ();
/* this will print the number, so you can get the screen number */
g_print ("Current Screen: %d\n", gdk_screen_get_number (screen));
/* your custom number here */
gint myscreen = 1;
ns = netk_screen_get (myscreen);
netk_tasklist_set_screen (NETK_TASKLIST (tasklist->list), ns);
}
If you see the same number for both screens, try to setup twinview or xinerama... Duno if this code works, but you can at least try it.
Offline
Hi,
Think I'm after the same of similar.
I got xinerama, running two screens, I've put a bar on each and put a task list on each.
I've just switched from Gnome and there only the windows on that screen would show on that tasklist and if I drag it over to another monitor, it would jump to that tasklist.
Can I set it up like this in Xfce? Is that the code I need above? If so, where do I shove it?
Cheers
Offline
[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 520.36 KiB (Peak: 521.2 KiB) ]