Lines Matching defs:leader_winptr
160 WinInfo *leader_winptr = NULL;
172 if (!LookupWindow (leader_win, &leader_winptr, NULL))
186 else if (leader_winptr)
190 return (leader_winptr);
668 WinInfo *leader_winptr;
694 leader_winptr = GetClientLeader (winptr);
710 if (!leader_winptr || leader_winptr->tested_for_sm_client_id)
717 leader_winptr->tested_for_sm_client_id = 1;
719 if (!HasXSMPsupport (leader_winptr->window))
721 XFetchName (disp, leader_winptr->window, &leader_winptr->wm_name);
723 XGetCommand (disp, leader_winptr->window,
724 &leader_winptr->wm_command,
725 &leader_winptr->wm_command_count);
727 XGetClassHint (disp, leader_winptr->window, &leader_winptr->class);
729 XGetWMClientMachine (disp, leader_winptr->window,
730 &leader_winptr->wm_client_machine);
732 if (leader_winptr->wm_name != NULL &&
733 leader_winptr->wm_command != NULL &&
734 leader_winptr->wm_command_count > 0 &&
735 leader_winptr->class.res_name != NULL &&
736 leader_winptr->class.res_class != NULL &&
737 leader_winptr->wm_client_machine.value != NULL &&
738 leader_winptr->wm_client_machine.nitems != 0)
740 leader_winptr->has_save_yourself =
741 HasSaveYourself (leader_winptr->window);
743 ConnectClientToSM (leader_winptr);
753 RemoveWindow (leader_winptr);