Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool is_in_dialog()
- {
- // No windows at all,
- if(open_window_stack.empty()) {
- //std::cerr << "OWS empty" << std::endl;
- return false;
- }
- window* w = open_window_stack.back();
- assert(w);
- if(w->mode() == window::modal) {
- std::cerr << "window modal" << std::endl;
- return true;
- }
- return w->get_distributor().keyboard_focus() != nullptr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement