fixed : changed active task with wm_menu option
git-svn-id: http://tint2.googlecode.com/svn/trunk@228 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
cb6ac44a9c
commit
2e8fddba60
3 changed files with 6 additions and 4 deletions
|
@ -137,6 +137,7 @@ void init_panel()
|
|||
if (systray.area.on_screen && i == 0) {
|
||||
init_systray_panel(p);
|
||||
p->area.list = g_slist_append(p->area.list, &systray);
|
||||
refresh_systray = 1;
|
||||
}
|
||||
|
||||
if (i >= old_nb_panel) {
|
||||
|
@ -164,7 +165,6 @@ void init_panel()
|
|||
|
||||
panel1 = new_panel;
|
||||
panel_refresh = 1;
|
||||
refresh_systray = 1;
|
||||
init_taskbar();
|
||||
visible_object();
|
||||
task_refresh_tasklist();
|
||||
|
|
|
@ -383,6 +383,8 @@ void active_task()
|
|||
}
|
||||
|
||||
Window w1 = window_get_active ();
|
||||
//printf("Change active task %ld\n", w1);
|
||||
|
||||
tsk2 = task_get_task(w1);
|
||||
if (!tsk2) {
|
||||
Window w2;
|
||||
|
|
|
@ -303,10 +303,10 @@ void event_button_press (XEvent *e)
|
|||
e->xbutton.window = server.root_win;
|
||||
// icewm doesn't open under the mouse.
|
||||
// and xfce doesn't open at all.
|
||||
//e->xbutton.x = e->xbutton.x_root;
|
||||
//e->xbutton.y = e->xbutton.y_root;
|
||||
e->xbutton.x = e->xbutton.x_root;
|
||||
e->xbutton.y = e->xbutton.y_root;
|
||||
//printf("**** %d, %d\n", e->xbutton.x, e->xbutton.y);
|
||||
XSetInputFocus(server.dsp, e->xbutton.window, RevertToParent, e->xbutton.time);
|
||||
//XSetInputFocus(server.dsp, e->xbutton.window, RevertToParent, e->xbutton.time);
|
||||
XSendEvent(server.dsp, e->xbutton.window, False, ButtonPressMask, e);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue