Kristian Høgsberg
64eca8949b
compositor: Fold the log prototypes into compositor.h and drop log.h
...
We're trying to keep the API exposed by the core compositor in compositor.h
12 years ago
Kristian Høgsberg
c4063f310a
xwm: Make override-redirect windows opaque
12 years ago
Tiago Vignatti
ce1baa8097
xwm: use last focused window for guessing transient parent
...
On X the global absolute coordinates are sent in ConfigureNotify and transient
windows are mapped exactly on that position. On Wayland we don't have the
concept of global coordinates, and that's a problem for transient surfaces
without transient_for set because they rely on such hint for setting their
positioning.
So this solution is a workaround. It guesses a parent based on the last
focused window to determine the relative position of the transient surface.
This put transient windows of Chrome browser back to work.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
12 years ago
Tiago Vignatti
e66fcee435
xwm: Fix transient positioning
...
Commit eaee7841
took out the configure positioning of windows. This patch
brings it back and addresses also logic for resizing and sub-menus, that was
not covered on that commit.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
12 years ago
Tiago Vignatti
2ea74d9f71
xwm: Initialize window decoration always as !override
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
12 years ago
Tiago Vignatti
9134b77f2c
xwm: Don't try to change frame cursor when there's no decoration
...
It was causing some artifacts on chrome.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
c190323c90
xwm: set the root window pointer to left_ptr
...
More pretty and also consistent with toytoolkit.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
236b48d414
xwm: set appropriate cursors for the frame window
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
90fada4338
xwayland: add simple xcb-cursor hook based on libXcursor
...
It's in fact based on the core of libXcursor, which doesn't bring any Xlib
dependency.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Kristian Høgsberg
e89cef37eb
xwayland: Look up 32 depth rgba render format as well
13 years ago
Kristian Høgsberg
e6d8d2f62a
xwayland: Use the right length for iterating through the formats array
...
Spotted by Tiago Vignatti, minimal fix to just use the right length.
13 years ago
Martin Olsson
197214112c
xwayland: Don't leak fd while reading lock file in src/xwayland/launcher.c
13 years ago
Kristian Høgsberg
8150b190d6
shell: Take a wl_surface as parent for transient and popup windows
13 years ago
Kristian Høgsberg
529b00eb34
xwm: Add xwayland.h to Makefile.am
13 years ago
Kristian Høgsberg
cd80f107b3
xwm: Fix crash when we don't have a transient_for window
13 years ago
Tiago Vignatti
bf1e8660ed
xwm: fix typo on windows hints
...
was giving a wrong assignment to window->type.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Martin Minarik
6d11836721
Replace fprintf() by weston_log()
13 years ago
Tiago Vignatti
771241e88f
xwm: use override_redirect for determining or not top-level windows
...
"top-level window is a window whose override-redirect attribute is False",
ICCCM 4.1.1
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Tiago Vignatti
71574542b3
xwayland: fix typo on configure libs
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Kristian Høgsberg
be375b362b
xwm: Only destroy window frame in unmap_notify if we have one
...
Based on a patch from Tiago Vignatti <tiago.vignatti@intel.com>.
13 years ago
Kristian Høgsberg
670b5d343d
xwm: Take WM_S0 manager selection
13 years ago
Kristian Høgsberg
cba022af3d
xwm: Claim the CLIPBOARD_MANAGER selection
13 years ago
Kristian Høgsberg
e220327223
xwm: Initialize X selection on X server startup
...
This way an already existing wayland selection will be available on
launch.
13 years ago
Kristian Høgsberg
4dec011807
xwm: Move selection proxy setup to selection.c
13 years ago
Kristian Høgsberg
c65d56a280
xwm: Follow wl_data_source changes
...
Creating the wl_data_offer is now entirely inside libwayland-server.
13 years ago
Kristian Høgsberg
805667388b
xwayland: Handle selection source going away without crashing
13 years ago
Kristian Høgsberg
d64bdf4755
xwm: Just ignore the synthetic unmap_notify
...
As per ICCCM 4.1.4 we're supposed to withdraw the window when we see
the real unmap or the synthetic unmap, whichever comes first. The
synthetic unmap may come after the window has been destroyed, so let's
just only handle the real unmap.
13 years ago
Kristian Høgsberg
a6d9a5e4aa
xwm: Set WM_STATE window property
...
xprop and gtk+ dnd is now working.
13 years ago
Kristian Høgsberg
f197e9f7a3
xwm: Bring back synthetic events and handle synthetic unmap notify as per ICCCM
13 years ago
Kristian Høgsberg
e244cb03f7
xwm: Don't try to read deleted properties
13 years ago
Kristian Høgsberg
029539bf27
xwm: Handle reparenting windows
13 years ago
Kristian Høgsberg
44c2013d43
xwm: Don't select for XCB_EXPOSE
...
We don't need expose events. All windows are redirected and we know
exactly when we need to repaint them.
13 years ago
Kristian Høgsberg
8d1aa7d8ef
xwm: Don't dispatch for events coming from XSendEvent
...
GTK+ sends an unmap_notify to the root window when a toplevel GTK+ window
gets unmapped. That may be a GTK+ bug, but we should just ignore events
from XSendEvent.
13 years ago
Kristian Høgsberg
194ea5423e
xwm: Destroy frame resources and reparent back to root in unmap_notify
...
The frame window and the wayland surface needs to go away when then
X window is unmapped, not when it's destroyed.
13 years ago
Kristian Høgsberg
d96fe1f7e7
xwm: Remove pointless change set request
13 years ago
Kristian Høgsberg
f94a031b84
xwm: Don't select for STRUCTURE_NOTIFY or RESIZE_REDIRECT
...
We get all that information through SUBSTRUCTURE_NOTIFY on the parent
windows.
13 years ago
Kristian Høgsberg
bc6e1622b0
xwm: Ignore map request for already mapped window
...
If a client sends another map request before the server has seen our
reply to the first map request event, we might get a map request for an
already mapped window. Just ignore that.
13 years ago
Kristian Høgsberg
0273b5716a
xwm: Reduce window property debug output
...
We just print properties when they change now instead of dumping all
properties whenever we re-read them. Also, make the property output a
little more concise.
13 years ago
Kristian Høgsberg
c9571fbd3a
xwm: Reset wm->focus_window when the focused window is destroyed
13 years ago
Tiago Vignatti
629ce23bd0
xwayland: change library name
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Kristian Høgsberg
e68fd10f87
xwm: Handle resize cases of _NET_WM_MOVERESIZE
13 years ago
Kristian Høgsberg
c1693f209a
xwm: Implement resizing by frame borders
13 years ago
Kristian Høgsberg
f96e6c00d9
Share code to to classify pointer location in frame
13 years ago
Kristian Høgsberg
a61ca06b49
xwm: Add window resize support
13 years ago
Scott Moreau
85ecac0a4e
xwm: Fold weston_wm_activate into weston_wm_window_activate
13 years ago
Scott Moreau
1b3984c3cc
xwayland/window-manager.c: Use container_of to get the wm pointer since window may be NULL.
13 years ago
Kristian Høgsberg
eaee784160
xwm: Use SUBSTRUCTURE_REDIRECT on frame window too
...
This lets us intercept and handle client attempts to resize their window
within the frame window.
13 years ago
Kristian Høgsberg
380deee3c7
xwayland: Add window-manager.c
...
Used mv instead of git mv to rename file...
13 years ago
Kristian Høgsberg
4714558e3d
xwayland: Rename xserver-launcher.c to window-manager.c
...
It's what it is now.
13 years ago
Kristian Høgsberg
e10b124ef5
xwayland: Move socket and launcher code to it's own file
13 years ago