-
Notifications
You must be signed in to change notification settings - Fork 34
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
XGServerWindow.m small fixes #25
base: master
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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
2020-03-11 Sergii Stoian <[email protected]> | ||
|
||
* Source/x11/XGServerWindow.m (_createAppIconPixmaps): accept | ||
WRaster context depth 24. | ||
(styleoffsets::::::): do not guess offsets for miniwindow and | ||
appicon they are equal to 0.0. | ||
|
||
2020-03-12 Sergii Stoian <[email protected]> | ||
|
||
* Source/art/GNUmakefile.preamble, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2283,7 +2283,8 @@ - (void) styleoffsets: (float *) l : (float *) r : (float *) t : (float *) b | |
|
||
if ((style & NSIconWindowMask) || (style & NSMiniWindowMask)) | ||
{ | ||
style = NSBorderlessWindowMask; | ||
*l = *r = *t = *b = 0.0; | ||
return; | ||
} | ||
|
||
/* Next try to get the offset information that we have obtained from | ||
|
@@ -2841,7 +2842,7 @@ - (int) _createAppIconPixmaps | |
height = [rep pixelsHigh]; | ||
colors = [rep samplesPerPixel]; | ||
|
||
if (rcontext->depth != 32) | ||
if (rcontext->depth != 32 && rcontext->depth != 24) | ||
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. I did put this new test here on purpose as your code did not work for Riccardo. Please have him test this change first. We do not need a regression shortly before a release. 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. OK, no problem. 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. I tested this specific change on both the problematic T23 16bit as well as the Letux400 (16 bit too) with no adverse effects. 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. Just to clarify, the change that Sergii made tries to allow for more systems to use this new code. It was my change to check for the depth that shut of Letux. I did this because you got a segmentation fault with the new code. If you don't get a segmentation fault now things are improved and Sergii's change to allow for depth 24 may be correct. But it is more likely that one of the other checks I added still blocks the call. You should check for that first. |
||
{ | ||
NSLog(@"Unsupported context depth %d", rcontext->depth); | ||
return 0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you think this required? Shouldn't we first check what is already stored in the known offsets?
There may be window managers that put a border even on these windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 2 things here:
In general I think that code below NSLog line is wrong and useless. Why offset for EWMH-compliant WM is 4.0? Why titlebar and resizebar sizes fixed and defined to that values?