Lines Matching refs:theWindow
88 static int WriteWinConfigEntry(FILE *configFile, TwmWindow *theWindow,
370 static int WriteWinConfigEntry(FILE *configFile, TwmWindow *theWindow,
381 theWindow->name, &theWindow->class)) {
394 if(!write_counted_string(configFile, theWindow->class.res_name)) {
397 if(!write_counted_string(configFile, theWindow->class.res_class)) {
400 if(theWindow->nameChanged) {
412 if(!write_counted_string(configFile, theWindow->name)) {
419 XGetCommand(dpy, theWindow->w, &wm_command, &wm_command_count);
444 if(!write_byte(configFile, theWindow->isicon ? 1 : 0)) {
454 if(theWindow->icon) {
455 if(!write_byte(configFile, theWindow->icon->w ? 1 : 0)) {
458 if(theWindow->icon->w) {
460 XGetGeometry(dpy, theWindow->icon->w, &JunkRoot, &icon_x,
477 if(!write_short(configFile, (short) theWindow->frame_x)) {
480 if(!write_short(configFile, (short) theWindow->frame_y)) {
483 if(!write_ushort(configFile, (unsigned short) theWindow->attr.width)) {
486 if(!write_ushort(configFile, (unsigned short) theWindow->attr.height)) {
489 if(!write_byte(configFile, theWindow->widthEverChangedByUser ? 1 : 0)) {
492 if(!write_byte(configFile, theWindow->heightEverChangedByUser ? 1 : 0)) {
501 if(!write_int(configFile, theWindow->occupation)) {
704 int GetWindowConfig(TwmWindow *theWindow, short *x, short *y,
726 clientId = GetClientID(theWindow->w);
727 windowRole = GetWindowRole(theWindow->w);
756 if(strcmp(theWindow->class.res_name,
758 strcmp(theWindow->class.res_class,
761 strcmp(theWindow->name, ptr->wm_name) == 0)) {
779 XGetCommand(dpy, theWindow->w,
888 TwmWindow *theWindow;
967 theWindow = theScreen->FirstWindow;
969 while(theWindow && success) {
970 clientId = GetClientID(theWindow->w);
971 windowRole = GetWindowRole(theWindow->w);
973 if(!WriteWinConfigEntry(configFile, theWindow,
986 theWindow = theWindow->next;