Commit Graph

778 Commits

Author SHA1 Message Date
Alexandre Julliard 026a4b0d0d Only restore the DC attributes on the next GetDC, and add support for
the DCX_NORESETATTRS flag.
Get rid of the DCE flags, simplify the code a bit.
Add some test cases.
2005-03-29 18:59:02 +00:00
Dmitry Timoshkov d6b063e380 Handle control characters in VkKeyScanEx similar to what Windows
does.
2005-03-29 11:30:13 +00:00
Alexandre Julliard 65e4d34599 Merged X11DRV_BITMAP_CreateBitmapHeaderFromPixmap into
X11DRV_DIB_CreateDIBFromPixmap and simplified the code a bit.
2005-03-28 10:06:06 +00:00
Alexandre Julliard 5fd13261a0 Added X11DRV_get_pixmap and X11DRV_set_pixmap functions to avoid
direct accesses to the physBitmap field of the bitmap structure.
2005-03-27 18:30:51 +00:00
Alexandre Julliard 3a522f3d71 Store the handle to the stock bitmap when the first DC is created to
avoid exporting the DEFAULT_BITMAP define.
2005-03-27 18:19:59 +00:00
Alexandre Julliard fe661fa752 Store the DCE pointer in the DC physDev structure using an x11drv GDI
escape.
2005-03-27 17:58:41 +00:00
Rein Klazes a807c5efce ScrollDC and X11DRV_SCROLLDC should scroll only pixels coming from
within the visible region, clipped to the clipping region if that
exists. Add the destination of pixels coming from the outside of this
region to the update region. With tests that depend on this.
2005-03-25 17:11:04 +00:00
Alexandre Julliard 2fb7c8754a Moved DCE support to the X11 driver. 2005-03-25 16:47:04 +00:00
Alexandre Julliard 4d32a475a8 Replace the link_window request by a set_parent request since that is
all link_window is used for at this point.
Get rid of the WIN_LinkWindow/UnlinkWindow functions.
2005-03-25 10:38:56 +00:00
Alexandre Julliard e802bcb2e2 Try a TrueColor visual if Xrender fails with a DirectColor one. 2005-03-24 21:04:10 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Alexandre Julliard 23d9ac25b2 Avoid calling WIN_ListChildren from the graphics drivers. 2005-03-24 20:41:27 +00:00
Kevin Koltzau f4767f1424 Added full support for xbuttons (side mouse buttons). 2005-03-24 19:15:41 +00:00
Alexandre Julliard 039603c77d Don't maintain a client-side WND structure for the desktop window.
Made WIN_GetPtr return WND_DESKTOP in that case.
2005-03-24 15:18:50 +00:00
Ron Jensen 888fb43ba2 Avoid bad visual errors in thread_selection_wnd(). 2005-03-23 13:08:35 +00:00
Alexandre Julliard 3b73e1277f Get rid of the remaining WIN_FindWndPtr calls. 2005-03-23 12:00:51 +00:00
Robert Shearman caec6026e7 - Window styles passed to CreateWindowEx must the same as passed in
CREATESTRUCT for WM_CREATE/WM_NCCREATE.
- Fix cases where WS_EX_WINDOWEDGE style is applied.
- Tests for the above.
2005-03-23 10:26:15 +00:00
Hans Leidekker ac147fefc7 Fix some -Wsign-compare and -Wuninitialized warnings. 2005-03-22 21:17:34 +00:00
Dmitry Timoshkov 10a7c25ac7 Add support for Serbian cyrillic X11 keyboard layout. 2005-03-22 16:42:47 +00:00
Alexandre Julliard 5054c79880 Try to always keep the server window Z-order in sync with the X11 one
using a heuristic based on mouse and expose events.
2005-03-21 12:37:00 +00:00
Alexandre Julliard 44e6d5a48d Don't try to resync Z-order on ConfigureNotify events, this cannot
work right anyway.
2005-03-21 10:57:21 +00:00
Glenn Wurster a21255d102 Remove break statements missed in last patch. 2005-03-21 10:53:42 +00:00
Alexandre Julliard f75609087a Make the server know about the visible area of a window, which is the
window rect minus the caption and borders when they are handled by the
window manager.
2005-03-17 19:10:41 +00:00
Alexandre Julliard 4e47afb36f Compute the top clipping window directly on the server side. 2005-03-17 14:02:06 +00:00
Alexandre Julliard 9ff2eea0e1 Don't force injected hardware messages to be queued in the current
thread.
2005-03-16 20:10:35 +00:00
Peter Berg Larsen 4293b614c4 Assorted memleak fixes. Found on Michael Stefaniuc smatch list. 2005-03-14 10:03:39 +00:00
Raphael Junqueira d574e9a2db - XListInputDevices spec say that device list should be freed using
XFreeDeviceList
- better robustness on X11DRV_AttachEventQueueToTablet
2005-03-10 11:48:28 +00:00
Alexandre Julliard 8382bf015e Added WM_X11DRV_DELETE_WINDOW message to handle close requests so that
we can send the WM_SYSCOMMAND with SendMessage instead of PostMessage.
Added missing NONAMELESSUNION define.
2005-03-09 18:46:13 +00:00
Alexandre Julliard aef19abc82 Moved SendInput and related functions to the USER driver to avoid a
number of dll separation hacks.
2005-03-09 16:45:23 +00:00
Alexandre Julliard 5beccd01ac Take into account the event mask passed to MsgWaitForMultipleObjectsEx
to allow processing only a subset of the available X events.
2005-03-08 19:20:14 +00:00
Maxime Bellengé ca6cb6b08b - Fix unmovable windows if the window style is set to WS_POPUP |
WS_VISIBLE and WS_EX_APPWINDOW.
- Fix metacity displaying decorations where it should not.
2005-03-08 18:58:25 +00:00
Alexandre Julliard 484ef02aab Added support for iso8859-16 charset. 2005-03-08 16:46:54 +00:00
Alexandre Julliard f210c0bbad Added a missing prototype. 2005-03-07 20:08:50 +00:00
Ulrich Czekalla 5067909587 Create a thread-specific selection window to make sure we receive the
selection events in the correct thread.
2005-03-07 19:31:46 +00:00
Dmitry Timoshkov ee5be57935 Avoid unnecessary window locking in X11DRV_DestroyWindow. 2005-03-07 17:13:53 +00:00
Alexandre Julliard d0ee9f9309 Avoid spaces before preprocessor directives, that's not portable. 2005-03-02 12:23:20 +00:00
Alexandre Julliard 2fd19dfb98 Use a dispatch table to handle X client messages. 2005-03-01 11:52:02 +00:00
Ulrich Czekalla 18fe91d8d2 If unexpected condition occurs just report an error. 2005-03-01 10:43:58 +00:00
Huw Davies 4cf9dd3d47 If the dibsection is based on a file-mapping object, then make sure
that the section is in sync when the dibsection is deleted.
2005-03-01 10:43:19 +00:00
Alexandre Julliard 94846a39dc Use a table of handlers to dispatch X events and get rid of the
special casing for DGA and tablet events.
Unify the declarations of all the event handlers.
2005-02-26 17:49:38 +00:00
Alexandre Julliard 0778a45da2 Moved clipboard event handling functions and some private data
structures to clipboard.c.
2005-02-25 21:01:15 +00:00
Alexandre Julliard 983a8b5888 Revert SC_CLOSE change, this is causing deadlocks. 2005-02-23 21:47:32 +00:00
Jason Edmeades ddd1c1d0a1 Take into account additional requested spacing on break characters. 2005-02-23 12:42:17 +00:00
Alexandre Julliard 548c973457 Allow the client rectangle to be of arbitrary size and dimensions,
regardless of the window rectangle.
2005-02-22 19:41:43 +00:00
Ulrich Czekalla 43b5576998 Duplicate Windows behaviour and use SendMessage for the SC_CLOSE
system command instead of PostMessage.
2005-02-18 20:00:57 +00:00
Lauri Tulmin 373dc8909f Make minimized windows stay minimized. 2005-02-16 16:08:18 +00:00
Dmitry Timoshkov 39f960bdfa - Fix prototypes of GetClassLongA/W, GetClassLongPtrA/W and
SetClassLongA/W according to SDK definitions.
- Add prototypes for SetClassLongPtrA/W, protect some GWL_ and GCL_
  constants from using in Wine or in _WIN64 mode.
- Fix all places in Wine affected by the above changes.
2005-02-15 21:51:06 +00:00
Alexandre Julliard e551555d4e Make the win data pointer only available in the thread that owns the
window.
2005-02-09 14:01:40 +00:00
Dmitry Timoshkov 641be42a88 Add support for Turkish (tr) X11 keyboard layout. 2005-02-09 13:25:59 +00:00
Dmitry Timoshkov 6dba0a7718 Add support for winevent hooks. 2005-02-03 16:40:20 +00:00
Alexandre Julliard ae661da49c Properly compute the client area valid rects and pass them to the
server in set_window_pos to avoid invalidating areas that remain
valid.
2005-02-03 13:40:12 +00:00
Alexandre Julliard d7726c3a73 Store the "managed" flag as a window property instead of the
Wine-specific WS_EX_MANAGED style bit.
2005-02-01 18:53:59 +00:00
Alexandre Julliard f777d70a63 Only create an X window for top-level windows, not for child windows.
Get rid of the X client window too, it's no longer needed.
2005-01-31 16:34:07 +00:00
Alexandre Julliard d56ccaa7e1 Use an X context to associated the x11drv private window data to a
window handle instead of accessing the WND structure directly.
2005-01-28 17:25:50 +00:00
Oliver Stieber fe59db7ce3 Send a scancode through for the 5 key when numlock isn't on. 2005-01-28 11:27:00 +00:00
Glenn Wurster bcaca0a5f7 Disable antialiasing of fonts while working in a palette. 2005-01-26 19:43:42 +00:00
Rein Klazes 3ee5db6e17 Make ShowWindow(...,SW_SHOWNA) also work on already visible windows
with some conformance tests.
2005-01-25 11:21:20 +00:00
Glenn Wurster eae60bedd5 Disable antialiasing if the font dictates it. 2005-01-24 19:32:54 +00:00
Glenn Wurster c3f8226ed1 Split caching of antialiased and non-antialiased glyphs. 2005-01-24 19:08:02 +00:00
Dmitry Timoshkov 50eb546e4f Put Brazilian ABNT2 keyboard layouts in line with appropriate virtual
keyboard maps.
2005-01-24 18:58:00 +00:00
Robert North 6d21f3e533 Bring wintab in line with Jeremy's X11 event timing patches again. 2005-01-24 13:38:32 +00:00
Robert North 589c9569b1 Add the rule that inverted cursor has -ve altitude, matching behaviour
on Windows wacom tablets.
2005-01-24 13:37:48 +00:00
Robert North 041e978353 Packets from eraser cursors are marked as inverted, matching behavior
on Windows Wacom tablets.
2005-01-24 13:36:42 +00:00
Robert North e4a19500ca - In wintab's default system context, change context options to match
Wacom tablet in windows.
- Change device orientation unit definition to angular.
- Use Macros where appropriate to define cursor and device defaults.
2005-01-24 13:33:23 +00:00
Robert North 8ed495987e - Don't post messages on Wine message queue, if tablet context flags
posting are disabled.
- When posting messages on Wine message queue, use message base stored
  in tablet context, not the default message base.
- Ensure that X11 Proximity events put messages onto Wintab message
  queue.
2005-01-24 12:40:01 +00:00
Robert North cb4652a71c Generate Wintab packets for XInput button up/down events. 2005-01-24 11:23:40 +00:00
Alexandre Julliard 5ae51c47dd Tweak SetWindowPos flags handling to make a few more of the messaging
tests pass.
2005-01-21 17:06:07 +00:00
Alexandre Julliard f936428601 Make WIN_SetStyle more thread-safe by specifying the bits to change
instead of the new value.
2005-01-21 10:32:13 +00:00
Rémi Assailly 81b13c4bb5 Added missing declarations. 2005-01-20 20:36:01 +00:00
Alexandre Julliard 6382ffae2a Replace a number of calls to WIN_FindWndPtr by WIN_GetPtr. 2005-01-20 20:07:42 +00:00
Oleh R. Nykyforchyn 62b94d89bd Ukrainian codepage 21866 added and respective files corrected. Two
keyboard layouts (for Ukrainian and Russian) added.
2005-01-19 20:59:31 +00:00
Alexandre Julliard 6758db9a0c Get rid of nonclient.h and of the corresponding exported functions in
user32.spec.
2005-01-17 20:27:11 +00:00
Alexandre Julliard fc5ce14592 Avoid most references to the internals of the WND structure by passing
around an x11drv_win_data pointer instead.
2005-01-17 19:17:47 +00:00
Alexandre Julliard b819f4cd5c Removed a couple of unnecessary calls to WIN_SuspendWndsLock. 2005-01-17 15:49:02 +00:00
Alexandre Julliard d820437b19 Removed unused ForceWindowRaise function. 2005-01-17 13:46:57 +00:00
Jeremy White 77502e7e62 Fix X11 event timing so that we correctly correlate X11 timing and
Wine timing and dynamically adjust it as we go.
2005-01-14 17:06:40 +00:00
Alexandre Julliard 56206376b8 Desktop window is repainted on WM_ERASEBKGND, it must never get a
WM_PAINT.
2005-01-11 15:15:11 +00:00
Alexandre Julliard e2a7181069 Warning fix. 2005-01-11 15:13:11 +00:00
Jacek Caban 7e2a7c949d Get rid of W->A calls. 2005-01-11 15:10:56 +00:00
Eric Pouech cf1d00bb08 Removed excessive statement (break after return or goto, not useful
break, not needed vars...)
2005-01-09 16:42:53 +00:00
Ulrich Czekalla 318b963f9f Always clearAllSelections since not clearing CLIPBOARD can get us into
an odd state.
2005-01-04 20:34:46 +00:00
Michael Stefaniuc 15a308a9d7 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2005-01-03 14:56:42 +00:00
Dmitry Timoshkov ce81088eb5 - Do not print FIXME in X11DRV_GetKeyboardLayout if dwThreadid
identifies current thread.
- Make X11DRV_GetKeyboardLayoutList follow the same rule as
  X11DRV_GetKeyboardLayout and X11DRV_GetKeyboardLayoutName for CJK
  locales.
- There is no need to have 0xe001 in the high word of Japanese
  keyboard layouts lcids in main_key_tab, the above APIs take care of
  it.
- High word of a returned keyboard layout duplicates low word for non
  CJK locales under Windows.
2005-01-03 14:44:27 +00:00
Mike Hearn 9b98d3d3d8 Fix Xlib locking in create_desktop. 2004-12-27 17:03:15 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Eric Pouech 4fa1d6bba7 Fixed bug with unsigned index in decreasing loop. 2004-12-22 17:16:03 +00:00
Jon Griffiths 32454a81a5 Remove unneeded headers to reduce unneeded rebuilds. 2004-12-20 19:00:11 +00:00
Rémi Assailly 853f79bdad - removed unused tagPALETTEOBJ and tagWINDOWPOS
- tagBITMAPOBJ is declared twice, removed one.
2004-12-17 19:35:16 +00:00
Dmitry Timoshkov 99fda0a1de Add a mouse input test case, make the test pass under Wine. 2004-12-17 18:49:24 +00:00
Michael Stefaniuc 1493433e38 Missing HeapFree's + 1 LocalFree (found by smatch). 2004-12-14 11:38:50 +00:00
Alexandre Julliard 25b6493aee Added some sanity checks on window dimensions. 2004-12-09 16:58:00 +00:00
Alexandre Julliard 6a78c16aac Moved private USER definitions to a new user_private.h header, and
removed the global user.h.
2004-12-08 18:06:14 +00:00
Alexandre Julliard 5defa49979 Moved update region handling to the server. 2004-12-07 17:31:53 +00:00
Jean-Michel Dault ee2f10d51d Added another Canadian keyboard layout. 2004-12-06 17:06:20 +00:00
Dmitry Timoshkov 12f49fb9b1 ShowWindow activates only a being maximized child window, add a couple
of message tests for MDI child activation.
2004-12-06 16:38:19 +00:00
Eric Pouech 0a258964c2 Const correctness fixes. 2004-11-30 21:38:57 +00:00
Robert Shearman 83f7b39dab When changing from DIB_Status_GdiMod to DIB_Status_GdiMod, we have to
set the previous status to DIB_Status_GdiMod, otherwise a
non-committing unlock could incorrectly revert the DIB to another
state, rather than the correct DIB_Status_GdiMod.
2004-11-23 12:21:05 +00:00
Glenn Wurster c26d15f876 Use physDev->textPixel instead of GetTextColor for ExtTextOut. 2004-11-22 18:10:16 +00:00
Huw Davies a90a60866c Fallback to some sensible default values when underlining and striking
out bitmap fonts.
Rotate the strikeout line if the escapement is non-zero.
2004-11-19 18:10:47 +00:00
Kevin Koltzau 0e6408c408 Change AlphaBlend to use destination dimensions rather then source. 2004-11-09 20:02:57 +00:00
Walt Ogburn 0bec4b7024 Turn ISO_Left_Tab back into a tab character if needed. 2004-11-08 20:25:37 +00:00
Michael Kaufmann 0dd2910eba - Extended support for BITMAPCOREINFO / BITMAPCOREHEADER structures.
- Always calculate the location of the color table.
- CreateCompatibleBitmap: Create a DIB section if necessary.
- Added some tests.
2004-11-02 05:23:49 +00:00
Kevin Koltzau 92ec21bd2b Add stretching support to AlphaBlend. 2004-10-27 00:43:50 +00:00
Alexandre Julliard d3c0cb77d9 VK_0-9 and VK_A-Z are not defined in the Windows headers, removed them
(spotted by Francois Gouget).
2004-10-22 20:29:10 +00:00
Robert North e2bd6f36d0 Fix WTInfoA in wintab.c so it can now take lpOutput == NULL, as per
standard.
2004-10-21 19:53:02 +00:00
Alexandre Julliard 065fdde8f6 Authors: Doug Paul <doug@elemental.ath.cx>, Glenn Wurster <gwurster@scs.carleton.ca>
Change reading of PC_(EXPLICIT|NOCOLLAPSE|RESERVED) to handle multiple
values.
2004-10-18 21:18:30 +00:00
Vincent Béron 57fb99fa25 Protect some more types which can be redeclared in Xmd.h. 2004-10-18 19:37:19 +00:00
Dmitry Timoshkov 4f8a7592a7 Disable remaining piece of the code which auto assigns virtual key
codes, it breaks VK_OEM_102 in finnish/swedish keyboard layouts.
2004-10-08 20:50:24 +00:00
Dmitry Timoshkov b0c45123e5 Add a test case for accelerators, make the test pass on Wine. 2004-10-05 23:45:35 +00:00
Dmitry Timoshkov 7d6f360f94 Ignore FocusOut event if there is no event window. 2004-09-29 21:11:28 +00:00
Michael Kaufmann 54be3001b4 - Add as many entries to the color map as specified by the DIB.
- Support bitmaps with a BITMAPV{4,5}HEADER.
2004-09-27 20:33:58 +00:00
Robert Shearman bbdac5e475 GetWindowLong -> GetWindowLongPtr. 2004-09-22 19:14:08 +00:00
Rein Klazes 3430bc2cb2 X11DRV_ScrollDC should not have a WINAPI attribute. 2004-09-20 19:10:55 +00:00
Alexandre Julliard 807fe07417 Don't bother to return partial region data in get_window_region and
get_visible_region, return STATUS_BUFFER_OVERFLOW instead.
2004-09-17 18:20:11 +00:00
Huw Davies daf776fdde When we blit with a monochrome dibsection as the source we should use
the colour table of that dib.
Added a test for this.
2004-09-16 20:29:25 +00:00
Huw Davies 530e789d7e It's important to keep the original dib colour table and not just the
colour mapping associated with a dib section - it's this table that
GetDIBColorTable should retrieve.
Added some GetDIBColorTable tests.
2004-09-16 19:10:14 +00:00
Dmitry Timoshkov ca27b29f92 Remove a stray 'else' left by a previous patch. 2004-09-15 18:03:15 +00:00
Dmitry Timoshkov d304e4f80d Log flags for WM_WINDOWPOSCHANGING/WM_WINDOWPOSCHANGED messages, make
the tests pass on Win95/Win98/Win2000, fix some test failures under
Wine.
2004-09-13 18:03:09 +00:00
Huw Davies ce34568351 We want all 1bpp dibsections to have a monochrome bitmap and
everything else to be at the screen depth.
2004-09-10 19:35:56 +00:00
Alexandre Julliard 92acc58af6 Get rid of the WIN_SetRectangles export from user32. 2004-09-09 00:30:29 +00:00
Alexandre Julliard bf5470c00e We still need to look for the top parent that doesn't clip siblings in
GetDC because of the X window clipping.
2004-09-01 17:30:35 +00:00
Alexandre Julliard 9fff718a6d wineclipsrv is no longer used, remove it. 2004-09-01 01:40:57 +00:00
Uwe Bonnes a8509028c1 Spelling fix. 2004-08-30 18:36:35 +00:00
Huw Davies ce4dfe23b4 Deprecate the "Resolution" entry in the config file in favour of
HKEY_CURRNET_CONFIG\Software\Fonts\LogPixels.
2004-08-26 18:24:49 +00:00
Evan Deaubl 627423d10b Fix an ERR log in X11DRV_CreateWindow. 2004-08-26 18:11:29 +00:00
Alexandre Julliard 8680ce1a0e In GetDC use the parent drawable when DCX_PARENTCLIP is set. 2004-08-24 18:49:34 +00:00
Alexandre Julliard 041c489a47 When possible, use the X window of the requested window in GetDC
instead of the parent to avoid trouble with OpenGL clipping.
2004-08-24 02:35:25 +00:00
Robert Shearman 553dc348b0 Allow the user to move managed windows by dragging on HTCAPTION
areas.
2004-08-18 23:47:48 +00:00
Krishna Murthy af5feb9bdd Allow resizing windows without thickframe style. 2004-08-17 22:28:02 +00:00
Huw Davies 13f52454c4 Sync with dibsection in SetDIBitsToDevice. 2004-08-13 19:47:29 +00:00
Huw Davies dd8922f20b Repect the width of both the src and dst when calculating how many
pixels to copy in a dib <-> bmp operation.
2004-08-12 20:02:39 +00:00
Hans Leidekker 5f6f63a49d Fix signed/unsigned comparison warnings. 2004-08-11 23:45:34 +00:00
Huw Davies dbf5b2a320 Don't try to rotate bitmap fonts. 2004-08-11 19:34:20 +00:00
Huw Davies 175208f5e1 Ever since win98 pattern brushes have been able to be larger than 8x8
pixels, so remove this restriction.
2004-08-11 18:50:52 +00:00
Ulrich Czekalla 8322fc6a57 Avoid holding x11drv lock while calling function that grabs gdi
lock. Prevents potential deadly embrace.
2004-08-10 23:42:52 +00:00
Lionel Ulmer aa25b1f886 Do not initialize variables before going into the Render short-cut. 2004-08-09 18:50:35 +00:00
Ofir Petruska 7054a8de78 Default DesktopDoubleBuffered to true. 2004-08-09 18:48:49 +00:00
Huw Davies 2bf1562c28 Actually pass the blend function on to the graphics driver. 2004-08-06 18:59:31 +00:00
Huw Davies 4e54df5a95 Added top-down dib support to AlphaBlend. 2004-08-04 18:15:42 +00:00
Huw Davies dd5b23fddb Implement AlphaBlend using the XRENDER extension. 2004-08-02 18:54:54 +00:00
Huw Davies f45befe411 Draw underline and strikeout lines in the non-xrender cases too. 2004-07-22 19:44:10 +00:00
Alexandre Julliard 642584c560 Make x11drv fail to load when it can't open the display, instead of
killing the whole process.
2004-07-13 03:49:52 +00:00
Marcus Meissner 035f34c99b Replaced lvalue casts / postincrement mixes. 2004-07-12 19:46:24 +00:00
Mike Hearn c34b79ce43 Output X11 protocol errors before breaking into debugger. 2004-07-09 19:25:59 +00:00
Ulrich Czekalla 5b1a13b281 If the selection owner doesn't understand TARGETS, try retrieving
XA_STRING.
2004-07-08 20:14:37 +00:00
Ulrich Czekalla 0a8d550901 Handle case when data type is not registered. 2004-07-08 20:14:23 +00:00
Alexandre Julliard 6acd40dc98 Fixed X11DRV_GetDC for the desktop window.
Use the client window as drawable when possible.
2004-07-06 23:57:01 +00:00
Alexandre Julliard 618a7e5813 Added support for window regions in the server. 2004-06-29 03:53:25 +00:00
Alexandre Julliard e59ec7cd94 Use X11DRV_GetRegionData to implement X11DRV_SetWindowRgn instead of
duplicating that functionality.
2004-06-28 23:54:22 +00:00
Dmitry Timoshkov b3569e7015 Add a test case for clipboard functionality and fix some bugs revealed
by it.
2004-06-25 02:55:37 +00:00
Robert Shearman 55efefddee Fix small mistake in the previous visible region patch. 2004-06-24 04:06:51 +00:00
Dmitry Timoshkov d530e54883 WM_WINDOWPOSCHANGED should always contain a final window position. 2004-06-23 20:50:30 +00:00
Alexandre Julliard e8d86b7cd4 Moved visible region calculation to the server. 2004-06-23 20:44:58 +00:00
Vincent Béron 9d8036e1d8 Replace some more -debugmsg references for WINEDEBUG. 2004-06-21 23:56:15 +00:00
Alexandre Julliard 0118c8ba0f Only unmap the window when it gets moved off-screen by the app, not by
the window manager.
2004-06-18 22:34:19 +00:00
Dmitry Timoshkov b6175f49af ShowWindow shouldn't fix SWP_ flags, it's the job of SetWindowPos. 2004-06-18 19:37:37 +00:00
Huw Davies ed4bc907ef Remove an incorrect LeaveCriticalSection. 2004-06-16 19:02:25 +00:00
Ulrich Czekalla 06a60621ab ScrollDC should take into account overlapped windows. With this change
ScrollWindowEx can be moved out of X11drv.
2004-06-15 17:04:02 +00:00
Huw Davies 72ebbb61fa Don't allocate a glyphset until we actually need it. 2004-06-15 17:01:52 +00:00
Dmitry Timoshkov 4e23f101f3 Do nothing in ShowWindow(SW_SHOW) if a window is already visible. 2004-06-14 19:32:21 +00:00
Mike Hearn 0bc2edf341 Make UseXrandr default to true in the no config file case. 2004-06-14 16:58:38 +00:00
Mike Hearn eff34efcf8 Ignore attempts to hide an already invisible window. Add a test case
for this behaviour, passes on Wine and Windows 2000.
2004-06-03 23:26:35 +00:00
Mike Hearn e2a7b28960 Default to 96dpi when not specified in the config file. 2004-05-28 03:39:59 +00:00
Troy Rollo 2cf4ec3e2d Make underlining of fonts drawn at an angle follow the text. 2004-05-27 02:20:50 +00:00
Eric Pouech df93f2eeee GetModuleFileName[AW] doesn't terminate the string if the buffer is
too small.
2004-05-19 03:22:55 +00:00
Patrik Stridvall 070db4e5de Fixed some issues found by winapi_check. 2004-05-17 21:08:31 +00:00
Dmitry Timoshkov 89525a1925 Fix Croatian keyboard layout to better match the XFree86 one. 2004-05-11 22:17:36 +00:00
Dmitry Timoshkov 80422fb830 Make WM_GETMINMAXINFO default behaviour more like the Windows one. 2004-05-07 00:41:32 +00:00
Ulrich Czekalla b41466b3b1 Allow applications, under certain conditions, to set data into the
clipboard even if they are not the clipboard owners.
2004-05-06 23:40:30 +00:00
Francois Gouget cfc3943c5f Make our ascii strings static const.
Remove a couple string variables that were used only once and use the
string literal directly.
2004-05-04 04:13:05 +00:00
Alexandre Julliard 9f986f9a99 Don't close the current thread display on process exit, we don't close
the other ones anyway. Should avoid XRender error in metafile test.
2004-05-04 02:57:29 +00:00
Krzysztof Foltman 9a900aa279 Make sure ascent/descent values don't become negative after coordinate
mapping.
2004-04-29 20:01:23 +00:00
Alexandre Julliard 7f8ad0a2bf Fixed unsigned comparison issue in previous change. 2004-04-28 00:31:21 +00:00
Alexandre Julliard 59b7d34b7d Replace empty window rect checks by a new X11DRV_is_window_rect_mapped
function so that we can reuse that support for off-screen windows.
2004-04-27 23:32:01 +00:00
Jukka Heinonen 6d58de6374 If source and destination are the same object, don't lock the object
twice as it will only be unlocked once.
2004-04-26 20:06:08 +00:00
Dmitry Timoshkov 11af61652b - start assigning custom VK codes from VK_OEM_8 since this code
already presents in the layout tables
- search the layout tables only if XLookupString returned non zero
  number of characters for a keysym, otherwise that's a non character
  key
- avoid inserting VK_OEM_x codes into unassigned positions since these
  codes might already be in the layout table, thus creating a conflict
2004-04-17 00:21:51 +00:00
Dmitry Timoshkov e06dd2cfe4 A workaround for missing real support for keyboard layout APIs. 2004-04-14 19:34:06 +00:00
Dmitry Timoshkov e1d413da84 Add a test case for children Z ordering at window creation time. 2004-04-12 22:05:53 +00:00
Dmitry Timoshkov 062080d633 Conditionally compile code which uses XK_EuroSign definition. 2004-04-09 19:06:08 +00:00
Dmitry Timoshkov 70c4864e8c Restore correct focus handling for ShowWindow(SW_HIDE) case. 2004-04-08 19:47:01 +00:00
Dmitry Timoshkov b9001f3443 Revert an erroneous patch. 2004-04-08 19:07:20 +00:00
Mike McCormack c7c9f93913 Load the XRandR extension dynamically (with help from Alex Pasadyn). 2004-04-07 03:57:35 +00:00
Rein Klazes 46138d8ef7 Do not crash if the clipboard format is unknown. 2004-04-05 20:17:13 +00:00
Dmitry Timoshkov 11a3a4f59c Add SWP_NOZORDER in the case it's not needed. 2004-04-02 20:22:29 +00:00
Dmitry Timoshkov 9858e235d2 A decision whether add SWP_NOACTIVATE or not should be based on
GetActiveWindow() test.
2004-04-02 20:18:20 +00:00
Dmitry Timoshkov 0d3748bbf6 ShowWindow should not optimize SW_HIDE, it's the job of SetWindowPos. 2004-04-02 20:16:39 +00:00
Dmitry Timoshkov 85571bb128 Sending WM_SHOWWINDOW is a job of SetWindowPos. 2004-04-02 20:14:15 +00:00
Dmitry Timoshkov 0ad1a6c6dd Setting WS_VISIBLE style does not require any special handling. 2004-04-02 20:12:38 +00:00
Huw Davies 210b54670c We don't support GetDIBits with BI_RLE4/8, so for now return an
uncompressed bitmap if the bits buffer is large enough.
2004-03-30 20:39:09 +00:00
Dmitry Timoshkov d687ed2e28 Fix Slovenian keyboard layout to better match the XFree86 one. 2004-03-29 22:56:18 +00:00
Alexandre Julliard fac49cbae8 Avoid crash in X11DRV_IsSolidColor for TrueColor displays. 2004-03-27 01:37:32 +00:00
Huw Davies caab4c6f39 Build the correct colour map when the mode is DIB_PAL_COLORS. 2004-03-27 01:37:09 +00:00
Alexandre Julliard 9e4ed6460c .spec.c files are no longer used for 32-bit dlls. 2004-03-24 03:36:44 +00:00
Mike Hearn 99afa3a4a2 The KeymapNotify event does not use the window member, so don't warn
about it being unknown.
2004-03-19 01:17:32 +00:00
Dmitry Timoshkov 21fc3c8067 CreateDIBSection takes a const pointer to BITMAPINFO. 2004-03-12 19:46:12 +00:00
Dmitry Timoshkov 4edbbbd8ea Windows truncates windows coordinates at 16 bits when moving or
resizing a window.
2004-03-11 03:51:46 +00:00
Jason Edmeades af83e4cf91 Calculate the size of BI_BITFIELDS dib sections via the width and
height.
2004-03-07 03:47:55 +00:00
Alexandre Julliard 05df86a38f Moved more GDI definitions to gdi_private.h.
Get rid of bitmap.h and palette.h.
2004-03-04 20:41:12 +00:00
Alexandre Julliard 83decd25ad Changed the CreateDC driver entry point to use an HDC instead of a DC
pointer.
2004-03-04 06:26:11 +00:00
Alexandre Julliard 37fda71e41 Get rid of the X11DRV_DC_Funcs hack.
Removed a couple of unused bitmap functions.
2004-03-04 06:13:21 +00:00
Alexandre Julliard ebd24807fe Pass the gdiFont object to the SelectFont driver entry point so that
we don't need to look into the DC structure for it.
2004-03-04 04:05:04 +00:00
Alexandre Julliard 9b90e95d65 Avoid direct accesses to the xformWorld2Vport DC field. 2004-03-04 03:55:52 +00:00
Alexandre Julliard 8d18b2a518 Pass the breakExtra value in the ExtTextOut driver call, since there
is no function to retrieve it from the HDC.
2004-03-04 01:42:57 +00:00
Alexandre Julliard 45468c06df Changed the GetTextExtentPoint graphics driver entry point to return
device coordinates.
Removed not used breakCount field in the DC structure.
2004-03-03 21:32:15 +00:00
Francois Gouget 87f223a879 Assorted spelling and case fixes. 2004-03-02 20:55:57 +00:00
Huw Davies 10e05d02f2 Enable resizing if WS_THICKFRAME is set. 2004-03-02 20:54:41 +00:00
Patrik Stridvall 8f9b09e947 Fixed some issues found by winapi_check. 2004-02-27 21:32:54 +00:00
Patrik Stridvall ede82e3055 Fixed some issues found by winapi_check. 2004-02-20 20:19:23 +00:00
Ulrich Czekalla 455a22394a Implemented rendering synthesized BITMAP and DIB formats. 2004-02-20 05:43:00 +00:00
Finlo Boyde bb6fde284e Fix for deadlock when using private colormap. 2004-02-20 01:04:51 +00:00
Ulrich Czekalla 0bc05d41a3 Advance index as we set the atom values. 2004-02-19 01:10:16 +00:00
Alexandre Julliard 685b936214 The clip rectangle for ExtTextOut is in logical coords. 2004-02-16 20:35:52 +00:00
Alexandre Julliard e04fe7da4e Moved hGCClipRgn handling to the graphics driver. 2004-02-13 20:26:27 +00:00
Alexandre Julliard da6214a37d Get rid of a few more references to the DC structure. 2004-02-13 04:00:29 +00:00
Alex Pasadyn a4626a43f5 Update the desktop window size and send WM_DISPLAYCHANGE on resolution
changes.
2004-02-13 03:58:21 +00:00
Leonardo Quijano Vincenzi 9d956b2395 Fixed Latin American keyboard. 2004-02-10 01:35:57 +00:00
Francois Gouget ad5ff7ceeb Assorted spelling and case fixes. 2004-02-09 22:07:42 +00:00
Alex Pasadyn d18c8ca78f Make full-screen popup windows managed. 2004-02-06 05:17:55 +00:00
Dmitry Timoshkov ee2608d5aa Issue WARN instead of FIXME when there are mismatches between hard
coded and real keyboard layouts.
2004-02-03 21:28:39 +00:00
Alex Pasadyn 96bd8ea7d5 Use the first mode in the XVidMode mode list as the default. 2004-02-03 00:10:23 +00:00
Aric Stewart 04279d18cd The NVIDIA graphics device comes up as an X extension event, but
throws an error (BadMatch) when querying for the buttons. Catch this
error and and discard that device from being a tablet device.
2004-01-30 22:56:06 +00:00
Chris Morgan 98ae5ac103 If unable to open an X11 display mention that X needs to be running
and that $DISPLAY must be set correctly.
2004-01-30 22:54:39 +00:00
Aric Stewart fad2971151 Back out an unintentional change that snuck in with the XIM change. 2004-01-27 03:55:37 +00:00
Francois Gouget 6b6ed724ae Add missing '\n's to debug traces. 2004-01-27 00:01:43 +00:00
Aric Stewart 9672b791ee Use X11 XIM callbacks to enable full IME support.
Correct some timing issues with XIM input.
Start to provide the framework for the MSIME messages.
2004-01-21 02:22:26 +00:00
Alexandre Julliard 294c8af60b Removed some unnecessary inclusions of gdi.h. 2004-01-20 22:48:57 +00:00
Alexandre Julliard 50a783f734 Get rid of some direct accesses to the DC structure from outside GDI. 2004-01-20 22:04:00 +00:00
Alexandre Julliard 32f1ac3a66 Use the exported FONTENUMPROCW as parameter in the EnumDeviceFonts
driver function instead of defining a private function type.
2004-01-18 23:35:12 +00:00
Alexandre Julliard b89525fb06 Removed the bitsPerPixel field in the generic DC structure, and leave
it up to the graphics driver to define it if necessary.
2004-01-18 22:20:17 +00:00
Marcelo Duarte b12ecc0e8d Fixed typos. 2004-01-18 22:10:39 +00:00
Alexandre Julliard 7342390852 Get rid of the global INTERNAL_[XY]WSTODS macros. 2004-01-15 06:19:35 +00:00
Alexandre Julliard 6ec42c0c3b Moved a bunch of definitions from gdi.h into a new gdi_private.h to
make sure we don't use them outside of gdi32.
2004-01-15 00:35:38 +00:00
Alexandre Julliard 85dcf1e1a0 Moved SetDrawable, StartGraphicsExposures and EndGraphicsExposures
functionality to x11drv escapes so that we don't have to access the DC
structure directly.
2004-01-14 04:53:11 +00:00
Alexandre Julliard 53145d96f6 Moved some code around to avoid exporting DIB functions from gdi32. 2004-01-13 23:31:46 +00:00
Alexandre Julliard c0faca0755 Avoid direct access to the palette structure. 2004-01-13 05:25:30 +00:00
Alexandre Julliard a51bb8151d ScrollDC doesn't need to be in the graphics driver. 2004-01-12 21:15:16 +00:00
Alexandre Julliard 19dfc3ce74 Removed XInitThreads call, the X libraries still have too many bugs to
make this viable.
2004-01-09 01:10:59 +00:00
Aric Stewart 2eebf3c78e Enable Tablet support with both Tilt and Pressure. 2004-01-09 00:03:00 +00:00
Ulrich Czekalla 6af0df45d6 Add option to use the primary selection in addition to the clipboard
selection.
2004-01-08 00:43:46 +00:00
Francois Gouget 640cc3f3e1 Assorted spelling fixes. 2004-01-06 22:08:33 +00:00
Alexandre Julliard 446d8321a7 Store window icons in the window structure so that WM_SETICON can do
the right thing (based on a patch by Aric Stewart).
2003-12-31 23:51:52 +00:00
Zimler Attila 14f7446f70 Fixed Hungarian keyboard layout. 2003-12-30 19:14:59 +00:00
Sami Aario bee1f7c8df Fixed a typo. 2003-12-30 19:14:35 +00:00
Jerry Jenkins 4e6fab5349 Fix managed state of some windows. 2003-12-13 00:05:53 +00:00
Dimitrie O. Paun 2eaefbd1a4 Move content of global.h into the appropriate private headers. 2003-12-08 21:58:55 +00:00
Alexandre Julliard 5329fc8902 Get rid of clipboard.h. 2003-12-05 04:45:50 +00:00
Alexandre Julliard 4715f13209 Moved all the files in graphics/x11drv to dlls/x11drv. 2003-12-05 00:20:27 +00:00
Alexandre Julliard a4330f9363 Removed X11 display parameter from the config file, this is more
confusing than useful.
2003-12-05 00:11:48 +00:00
Alexandre Julliard e6d7d5ab2c Initialize Xlib threading support to see what it breaks... 2003-12-04 21:59:51 +00:00
Mike Hearn 27d972f22a Map (WS_EX_TOOLWINDOW & WS_CAPTION) to _NET_WM_WINDOW_TYPE_UTILITY. 2003-12-04 21:54:13 +00:00