Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
6ce9fb5f
Commit
6ce9fb5f
authored
May 30, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Window.c/NXmiexpose.c: remove hack for certain WM theme
We do not even know what theme this is and it is probably not relevant nowadays.
parent
af1c4b9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
33 deletions
+1
-33
NXmiexpose.c
nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
+1
-14
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+0
-19
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXmiexpose.c
View file @
6ce9fb5f
...
...
@@ -142,20 +142,7 @@ miWindowExposures(pWin, prgn, other_exposed)
}
exposures
=
other_exposed
;
}
#ifdef NXAGENT_SERVER
/*
* If the number of rectangles is greater
* than 4, let the function decide.
*/
int
total
=
RegionNumRects
(
exposures
);
if
(
clientInterested
&&
exposures
&&
(
total
>
RECTLIMIT
||
(
total
>
4
&&
nxagentExtentsPredicate
(
total
)
==
1
)))
#else
if
(
clientInterested
&&
exposures
&&
(
RegionNumRects
(
exposures
)
>
RECTLIMIT
))
#endif
if
(
clientInterested
&&
exposures
&&
(
RegionNumRects
(
exposures
)
>
RECTLIMIT
))
{
/*
* If we have LOTS of rectangles, we decide to take the extents
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
6ce9fb5f
...
...
@@ -3484,26 +3484,7 @@ void nxagentSetTopLevelEventMask(WindowPtr pWin)
}
/*
* This function must return 1 if we want the
* exposures to be sent as the window's extents.
* This is actually a harmless, but useful hack,
* as it speeds up the window redraws considera-
* bly, when using a very popular WM theme.
*/
int
nxagentExtentsPredicate
(
int
total
)
{
#ifdef TEST
if
(
total
==
6
||
total
==
11
||
total
==
10
)
{
fprintf
(
stderr
,
"nxagentExtentsPredicate: WARNING! Returning [%d] with [%d] rectangles.
\n
"
,
(
total
==
6
||
total
==
11
||
total
==
10
),
total
);
}
#endif
return
(
total
==
6
||
total
==
11
||
total
==
10
);
}
void
nxagentFlushConfigureWindow
(
void
)
{
ConfiguredWindowStruct
*
index
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment