aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Window.c
Commit message (Collapse)AuthorAgeFilesLines
* nxagent: simplify nxagentWaitEvents()Ulrich Sibiller2019-08-271-5/+1
| | | | | no more need to pass down a struct, we now only pass the milliseconds and let the function do the rest.
* Window.c: use SAFE_free and SAFE_XFreeUlrich Sibiller2019-08-061-24/+16
|
* Drop Ipaq supportUlrich Sibiller2019-06-271-6/+0
| | | | Did we ever provide a binary?
* Consistently use None instead of 0 for nxagentIconWindow everywhereUlrich Sibiller2019-06-271-1/+1
|
* Window.c: rearrange code regarding window decorations sizesUlrich Sibiller2019-06-271-2/+9
|
* Window.c: add some comments about fullscreen handlingUlrich Sibiller2019-06-271-0/+12
|
* Window.c: add missing comment about nxagentConfiguredWindowListUlrich Sibiller2019-06-191-0/+6
| | | | | was in inital version of 6ce9fb5f2875754f97035d3338b3d0e1d20169ae but got lost during some rebasing/cherry-picking preceeding the pull request.
* dix/window.c: fix compiler warningUlrich Sibiller2019-06-191-10/+8
| | | | | Window.c:3827:46: warning: array subscript 128 is above array bounds of ‘StoringPixmapRec *[128]’ {aka ‘struct <anonymous> *[128]’} [-Warray-bounds] i, (void *) nxagentBSPixmapList[i]);
* Window.c: Drop defines CWParent and CWStackingOrderUlrich Sibiller2019-06-121-14/+14
| | | | | | They were just aliases to already existing defines and were not used stringently. So we had mix of aliased and non-aliased uses which is confusing when trying to understand the code...
* Window.c: remove leftover (commented) codeUlrich Sibiller2019-06-121-14/+0
| | | | | | | | | | | This was eventually replaced by nxagentAddConfiguredWindow(pWin, CW_Map) some lines below which is just leading to the same code being executed some time later. (nxagentAddConfiguredWindow() will add a window to a list. nxagentFlushConfiguredWindow() is called at certain points to update all windows in that list in one go. "update" here means calling XConfigureWindow() or XMapWindow() on the real display.)
* Window.c/NXmiexpose.c: remove hack for certain WM themeUlrich Sibiller2019-06-111-19/+0
| | | | | We do not even know what theme this is and it is probably not relevant nowadays.
* Window.c: comment on the purpose of some functionsUlrich Sibiller2019-06-111-8/+166
|
* Revert "nxagent: rework Bool handling"Ulrich Sibiller2019-02-151-20/+20
| | | | | | | | | | | | This reverts commit 16cd2bbe1c4425e3fa557f9ca0723aa94a50b071. It turned out that I had missed some of the Booleans being actually tristate variables. I think I can fix this (they do not need to be tristate) but I revert this for now to get back to a working state (there are reports about non-working fullscreen mode and reconnect problems). Refers to ArcticaProject/nx-libs#772
* nxagent: rework Bool handlingUlrich Sibiller2019-02-111-20/+20
| | | | drop "== False", "== 0", "== True" and "== 0" for nxagentOptions and Traps
* Window.c: move WM_STATE handling to separate functionUlrich Sibiller2019-01-141-17/+19
|
* Window.c: use C99 designated initializers at some placesUlrich Sibiller2018-10-271-37/+30
|
* Window.c: add FIXMEUlrich Sibiller2018-10-271-0/+4
|
* Window.c: save some lines by declaring loop variables in the loopUlrich Sibiller2018-10-271-48/+21
|
* Window.c: indent ifdefs for better readabilityUlrich Sibiller2018-10-271-46/+43
|
* Window.c: silence compiler warningsUlrich Sibiller2018-10-271-2/+8
|
* Window.c: some code simplificationsUlrich Sibiller2018-10-271-63/+26
|
* Window.c: whitespace cleanupUlrich Sibiller2018-10-271-136/+34
|
* Window.c: scope improvementsUlrich Sibiller2018-10-271-40/+27
|
* Window.c: reformat/add braces for readabilityUlrich Sibiller2018-10-271-42/+110
|
* Window.c: indent FIXMEsUlrich Sibiller2018-10-271-27/+27
|
* Window.c: convert old-style function definitions to ANSI C89 styleUlrich Sibiller2018-10-271-16/+6
|
* Window.c: remove useless codeUlrich Sibiller2018-10-221-4/+0
|
* Window.c: improve Bool usageUlrich Sibiller2018-10-221-5/+5
|
* nxagent: use nxagentWMIsRunning as Bool all over the placeUlrich Sibiller2018-10-221-3/+3
| | | | | | has been used as integer sometimes (technically correct, but not nice) Fixes ArcticaProject/nx-libs#698
* refactor nxagentGet(Default)EventMaskUlrich Sibiller2018-08-221-12/+3
| | | | Fixes ArcticaProject/nx-libs#691.
* nxagent: remove mmwidth/mmheight from nxagentChangeScreenConfigUlrich Sibiller2018-05-241-2/+2
| | | | Was 0,0 on every call...
* Screen.c/Events.c: fix some commentsUlrich Sibiller2018-05-241-2/+1
|
* hw/nxagent: fix spelling errors as reported by codespellUlrich Sibiller2018-05-241-6/+6
|
* hw/nxagent/: Use <function>(void) rather than <function>().Mike Gabriel2018-02-261-3/+3
|
* Window.c: fix TEST/DEBUG outputUlrich Sibiller2018-02-051-3/+3
|
* Make sure XQueryTree results are freedUlrich Sibiller2017-12-071-6/+6
| | | | Fixes ArcticaProject/nx-libs#585
* Events.c: drop unused variableUlrich Sibiller2017-12-071-3/+0
|
* simply free() callsUlrich Sibiller2017-11-211-15/+4
| | | | free() can handle NULL so there's no need to check this ourselves
* hw/nxagent/Window.c: Fix spelling error in debug message.Mike Gabriel2017-08-301-1/+1
|
* Set NX_AGENT_VERSION property for root windowUlrich Sibiller2017-08-101-0/+16
| | | | Fixes ArcticaProject/nx-libs#500
* Report Xlib-side window IDs to session.log in machine readable form. This ↵Mike Gabriel2017-07-051-2/+12
| | | | feature can be enabled by the cmdline options -reportwids and -reportprivatewids.
* hw/nxagent/Window.c: Introduce NX_REAL_WINDOW window property.Mike Gabriel2017-06-301-0/+36
| | | | | | | | | | | | | | | | In nxagent sessions, all X11 clients have a representation of their NX session-side window object on the real X-Server side. The window object gets stored in the new NX_REAL_WINDOW window property immediately after window creation. This mapping is created in nxagentCreateWindow(). On session resumption, the client side window IDs normally change. Thus, during session resumption, all NX_REAL_WINDOW properties require being updated. This happens in nxagentReconnectWindow(). While a session is suspended, the NX_REAL_WINDOW property does not exist. It gets removed during nxagentDisconnectWindow().
* Window.c: Fix reference before check for null pointerUlrich Sibiller2017-03-101-3/+7
|
* nxcompext: Move code into Xserver subtree, as nxcompext requires Xserver ↵Mike Gabriel2016-11-151-1/+1
| | | | | | includes at build time. Fixes ArcticaProject/nx-libs#276.
* Window.c: Fix function assignment warningUlrich Sibiller2016-10-201-1/+1
| | | | | | Window.c: In function ‘nxagentFrameBufferPaintWindow’: Window.c:1968:31: warning: ISO C forbids assignment between function pointer and ‘void *’ [-Wpedantic] PaintWindowBackgroundBackup = pWin->drawable.pScreen -> PaintWindowBackground;
* Per-file copyright notices: Update copyright information in file headers ↵Mike Gabriel2016-07-061-7/+15
| | | | that NoMachine placed there own copyright statement in.
* Move each screen's root-window pointer into ScreenRec.Mike Gabriel2016-06-211-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | Backported from X.org: commit e7fae9ecc42ab5e73b89117722dbf4117d928f9a Author: Jamey Sharp <jamey@minilop.net> Date: Sat May 22 00:26:28 2010 -0700 Move each screen's root-window pointer into ScreenRec. Many references to the WindowTable array already had the corresponding screen pointer handy, which meant they usually looked like "WindowTable[pScreen->myNum]". Adding a field to ScreenRec instead of keeping this information in a parallel array simplifies those expressions, and eliminates a MAXSCREENS-sized array. Since dix uses this data, a screen private entry isn't appropriate. xf86-video-dummy currently uses WindowTable, so it needs to be updated to reflect this change. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com> (i686 GNU/Linux) Backport to nx-libs: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
* nx-X11/programs/Xserver: Include nxcomp{,ext,shad} headers like one would do ↵Mike Gabriel2016-06-131-2/+2
| | | | with system-wide shared libraries.
* hw/nxagent/Window.c: Initialize tmp_mask and attributes.event_mask with ↵Mike Gabriel2016-05-021-1/+1
| | | | | | | | | | | | | NoEventMask. Amends the following compiler warning: ``` Window.c: In function ‘nxagentSetTopLevelEventMask’: Window.c:3392:31: warning: ‘attributes.event_mask’ may be used uninitialized in this function [-Wmaybe-uninitialized] Mask tmp_mask = attributes.event_mask; ^ ```
* hw/nxagent/Window.c: Don't declare "XWindowChanges changes;" and later not ↵Mike Gabriel2016-05-021-4/+0
| | | | | | | | | | | | use it. Amends the following compiler warning: ``` Window.c:2179:24: warning: variable ‘changes’ set but not used [-Wunused-but-set-variable] XWindowChanges changes; ^ ```