X-Git-Url: http://git.mutantstargoat.com?a=blobdiff_plain;f=src%2Fwm.cc;h=a77f026bc8a2909dec2893167a25d7e2885c1c4a;hb=ecb25bb23fcd6f98fb049297483e312c84fd7b5b;hp=a6e29b08df8aa8718888e5e1c1750aa8f5a04176;hpb=026158b5ee6ffac95c3efc6eee4c155497cd8594;p=winnie diff --git a/src/wm.cc b/src/wm.cc index a6e29b0..a77f026 100644 --- a/src/wm.cc +++ b/src/wm.cc @@ -23,9 +23,8 @@ void WindowManager::create_frame(Window *win) frame->set_display_callback(display); frame->set_mouse_button_callback(mouse); frame->set_mouse_motion_callback(motion); - - frame->add_child(win); frame->set_focusable(false); + frame->add_child(win); windows.push_back(frame); @@ -117,6 +116,8 @@ void WindowManager::process_windows() } dirty_rects.clear(); + wait_vsync(); + fill_rect(uni, bg_color[0], bg_color[1], bg_color[2]); root_win->draw_children(uni);