-
-
Notifications
You must be signed in to change notification settings - Fork 87
Make screen option of icon boxes work again #1230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1786,18 +1786,22 @@ void AutoPlaceIcon( | |
| icon_boxes_ptr = NULL; /* init */ | ||
| while(do_all_iconboxes(t, &icon_boxes_ptr)) | ||
| { | ||
| struct monitor *m; | ||
| if (loc_ok == True) | ||
| { | ||
| /* leave for loop */ | ||
| break; | ||
| } | ||
| /* get the screen dimensions for the icon box */ | ||
| FScreenGetScrRect(fscr, FSCREEN_CURRENT, | ||
| &ref.x, &ref.y, &ref.width, &ref.height); | ||
| dim[1].screen_offset = ref.y; | ||
| dim[1].screen_dimension = ref.height; | ||
| dim[2].screen_offset = ref.x; | ||
| dim[2].screen_dimension = ref.width; | ||
| m = monitor_resolve_name(icon_boxes_ptr->IconScreen); | ||
| if (m == NULL) | ||
| { | ||
| m = monitor_get_current(); | ||
| } | ||
| dim[1].screen_offset = ref.y = m->si->y; | ||
| dim[1].screen_dimension = ref.height = m->si->h; | ||
| dim[2].screen_offset = ref.x = m->si->x; | ||
| dim[2].screen_dimension = ref.width = m->si->w; | ||
| /* y amount */ | ||
| dim[1].step = icon_boxes_ptr->IconGrid[1]; | ||
| /* init start from */ | ||
|
|
@@ -1940,7 +1944,7 @@ void AutoPlaceIcon( | |
| } | ||
|
|
||
| /* this may be a good location */ | ||
| if (FScreenIsRectangleOnScreen(fscr, FSCREEN_XYPOS, &ref)) | ||
| if (IsRectangleOnThisPage(m, &ref, t->Desk)) | ||
|
Comment on lines
-1943
to
+1947
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why have you changed from
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As otherwise the defined IconBox of the user does not match but that of the leads to on stderr output of fvwm3 (here with a not set
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So? My point is that this is an entirely different function call you're changing. Why?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is your proposal to make the users IconBox win here. Using
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
What I'm asking, is why you changed from
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. compare with my current test in #1230 (comment)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're going round in circles, @bitstreamout What I'm saying about Rather than write all this additional crap in As a consequence ef doing this, we will need to update Would you prefer if I did this?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Indeed before I do the next crap ;)
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it is enough to use |
||
| { | ||
| loc_ok = True; | ||
| } | ||
|
|
@@ -2035,6 +2039,8 @@ do_all_iconboxes(FvwmWindow *t, icon_boxes **icon_boxes_ptr) | |
| global_icon_box_ptr->IconGrid[0] = 80; | ||
| global_icon_box_ptr->IconGrid[1] = 80; | ||
| global_icon_box_ptr->IconFlags = ICONFILLHRZ; | ||
| global_icon_box_ptr->IconScreen = "p"; | ||
ThomasAdam marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| global_icon_box_ptr->do_free_screen = 0; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why add do_free_screen here?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simply to be sure that the static string is not freed ... even it
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is an unnecessary addition.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
How to resolve the |
||
| } | ||
| if (*icon_boxes_ptr == NULL) | ||
| { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.