Commit graph

88 commits

Author SHA1 Message Date
Greg Depoire--Ferrer
8265eda78a Fix wrong resize anchor point
Previously, when dragging the left border of a window with the mouse, there
was a bug where it would snap the top level surface's geometry X coordinate
directly to the position of the mouse, as if you started the resize right on the border. This also affected the other (right, bottom, and top) borders.

I think that the previous resize code was hard to understand. Honestly I
have not spent a lot of time trying to understand why t didn't work and
I wrote another resize algorithm instead. Now instead of working directly
with widths and heights which are complicated we work with the borders (left,
right, top and bottom). This is easier to understand IMO.
2020-04-28 16:22:35 +02:00
Keith Bowes
114e265eef
Merge pull request #18 from keithbowes/modernize
Modernize
2020-03-11 08:32:50 -04:00
Keith Bowes
af1a945c1c wl_display_destroy_clients() requires Wayland 1.15+ 2020-03-10 21:00:56 -04:00
Keith Bowes
ed9a89a915 Split up a couple insanely long lines 2020-03-09 15:23:06 -04:00
Keith Bowes
d7257cd936
Merge pull request #16 from keithbowes/basic-functionality
Basic functionality
2020-03-08 20:29:03 -04:00
Keith Bowes
e1a3d77cde
Merge pull request #17 from keithbowes/editorconfig
Added an entry for meson.build files
2020-03-08 20:25:38 -04:00
Keith Bowes
794b938d87 Added an entry for meson.build files 2020-03-08 19:59:13 -04:00
Keith Bowes
0930f2f81f Removed duplicate error message 2020-03-08 19:57:54 -04:00
Keith Bowes
9eb57cf950 Naming improvements 2020-03-08 13:48:50 -04:00
Keith Bowes
97d08498e9 Name as well as version for --version 2020-03-08 12:47:58 -04:00
Keith Bowes
555b78e9ec Removed unnecessary dependencies 2020-02-29 12:16:50 -05:00
Keith Bowes
30f471d8b4 Make protocol/meson.build identation more consistent with other meson.build files 2020-02-28 10:53:16 -05:00
Keith Bowes
1c7c069e72 Consistent use of _POSIX_C_SOURCE 2020-02-27 20:07:44 -05:00
Keith Bowes
ff54fecfe6 Replaced the obsolete, unofficial protocols with official ones 2020-02-27 20:07:44 -05:00
Keith Bowes
21de46fbcf Fixed the 'Using "code" is deprecated' message in wayland-scanner 1.15+ 2020-02-27 20:07:44 -05:00
Keith Bowes
744ec648f4 Properly casting the last argument to execl() 2020-02-27 20:07:44 -05:00
Keith Bowes
24a88ec13a I've learned that atoi() is deprecated
I suppose that's what I get for not keeping track of new C standards
2020-02-27 20:07:35 -05:00
Keith Bowes
089f20980b Simplify meson.build
For one thing, I get no complaints from clang
2020-02-27 20:07:18 -05:00
Keith Bowes
c04609026b Removed included headers which aren't used by output.c anymore
I don't think assert.h ever was used
wlr/backend.h became unnecessary by a recent cleanup
wlr/types/wlr_compositor.h became unnecessary by the rendering-code rewrite for wlroots 0.9.0+
2020-02-27 19:58:12 -05:00
Keith Bowes
9435ebbfad Require wlroots 0.9.0+ 2020-02-27 17:20:45 -05:00
Keith Bowes
99f50dd19a Fixed up the README a bit 2020-02-27 17:20:38 -05:00
Keith Bowes
ac8bea9ed3 Style nits 2020-02-27 15:32:19 -05:00
Keith Bowes
a495d1e8e9 Style nits 2020-02-26 10:42:10 -05:00
Joe
6bfe782343
Merge pull request #14 from keithbowes/editorconfig
Added .editorconfig file, to help enforce styling guidelines
2020-02-26 09:31:27 -06:00
Keith Bowes
8e39503490 Removed unused parameters 2020-02-26 10:03:06 -05:00
Keith Bowes
a2835c8a64 Fixed new-output notifications in wlroots 0.6.0-0.8.1 with DRM backend 2020-02-26 08:18:56 -05:00
Keith Bowes
8679cf9aa4 Fixed refocus crash with the DRM backend 2020-02-25 23:37:23 -05:00
Keith Bowes
410b1e2ced Resolved merge with upstream 2020-02-24 20:18:08 -05:00
Keith Bowes
a40ab2c309 Finally got weston-terminal to start again (it's been segfaulting since seat support was added) 2020-02-23 22:41:48 -05:00
Keith Bowes
810414caba Actually use the user's preferred Xcursor theme/size 2020-02-23 22:33:06 -05:00
Keith Bowes
40dfbad423 More cleanup 2020-02-23 22:33:06 -05:00
Keith Bowes
83e87cd3de Less flaky refocus code 2020-02-23 22:33:06 -05:00
Keith Bowes
cd96e1c124 More cleanups; added missing request_cursor functionality 2020-02-23 22:33:06 -05:00
Keith Bowes
8bc4352eb8 Cleanup 2020-02-23 22:33:06 -05:00
Keith Bowes
43fcf1ebf1 Mouse support 2020-02-23 22:33:06 -05:00
Keith Bowes
0bb5787a10 Focus previous view on close 2020-02-23 22:33:06 -05:00
Keith Bowes
7191191377 Let setting the keyboard layout through the XKB_DEFAULT_* environment variables 2020-02-23 22:33:06 -05:00
Keith Bowes
7570698224 Implemented Openbox-compatible command-line options; hard-coded Alt+F2 to an application launcher; indicated the real purpose of WL_HIDE_DEPRECATED 2020-02-23 22:33:06 -05:00
Keith Bowes
9f2ddc48ef Some more keyboard support: no keyboard capability with no keyboards, ctrl+esc and alt+tab for more Openbox-esque behavior 2020-02-23 22:33:06 -05:00
Keith Bowes
874c844ce0 Replaced the old mcwayface rendering code with tinywl's xdg_shell code,
allowing it to compile with wlroots 0.9.0+
2020-02-23 22:32:09 -05:00
Keith Bowes
fe78796f7f Updated README.md; moved the keyboard code from server.c to seat.c 2020-02-23 22:21:32 -05:00
Keith Bowes
7d76b9ef76 Don't segfault on termination 2020-02-23 22:21:02 -05:00
Keith Bowes
f805499487 Basic data manager (wterm now shows, but input is still not working) 2020-02-18 15:56:03 -05:00
Keith Bowes
64db394085 Lifted support for keys from tinywl; TODO: don't have all the code in server.c 2020-02-18 15:48:26 -05:00
Keith Bowes
1cd178e9ce Basic seat support 2020-02-18 08:10:24 -05:00
Keith Bowes
cb67c24718 Got basic xdg-shell code 2020-02-17 23:43:14 -05:00
Joe
a2ae1f5232
Merge pull request #15 from Timidger/master
Fix bad indentation
2020-02-14 11:06:20 -06:00
Timidger
aa5988ccca Fix bad indentation 2020-02-13 15:06:17 -05:00
Joe
d0a15cd050
Merge pull request #13 from keithbowes/wlroots-0.9.0
Makes compilable with wlroots 0.9+
2020-02-13 11:08:35 -06:00
Keith Bowes
e761d255dc Also use styling for header files 2020-02-13 10:35:29 -05:00