<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/wayland.c, branch 1.2.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-03-06T18:19:18Z</updated>
<entry>
<title>wayland: remove debug logs</title>
<updated>2020-03-06T18:19:18Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-06T18:19:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e6feed5311bc061963d9f5f19d415d02dec26236'/>
<id>urn:sha1:e6feed5311bc061963d9f5f19d415d02dec26236</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: log: say 'requesting' instead of 'referring' client/server decorations</title>
<updated>2020-03-06T18:18:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-06T18:18:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4f90cbda5968b5404434077ad94dfcc0e129a191'/>
<id>urn:sha1:4f90cbda5968b5404434077ad94dfcc0e129a191</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: set window geometry to exclude the invisible CSD borders</title>
<updated>2020-03-03T17:26:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-03T17:26:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d76484ae50efb8ede95e6b0921bdb1fad26dccd9'/>
<id>urn:sha1:d76484ae50efb8ede95e6b0921bdb1fad26dccd9</id>
<content type='text'>
But it *does* include the title bar. This simplifies the 'adjustment'
needed to be done to the configured window size.

It also fixes a number of issues:

* the compositor will now properly snap the window to screen
  edges (before, there was an empty space between the edge and the
  window - the CSD border).
* This also removes the need for the mutter 'commit' workaround. We
  must be doing something right now.
</content>
</entry>
<entry>
<title>wayland: don't destroy keyboard/pointer if they haven't been removed</title>
<updated>2020-03-03T17:20:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-03T17:20:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f0892988c0bc590d885701c42c0a93b4cf6c6ab7'/>
<id>urn:sha1:f0892988c0bc590d885701c42c0a93b4cf6c6ab7</id>
<content type='text'>
When the seat capabilities change, we used to destroy all pointers and
keyboards, and then re-creating them as necessary.

This caused a crash on mutter - probably because we removed a keyboard
device the compositor had already sent an event for (or was about to).

Now, we only destroy and create devices when it's needed.
</content>
</entry>
<entry>
<title>csd: initial implementation of minimize/maximize/close buttons</title>
<updated>2020-03-02T19:29:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-02T19:29:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9699c9b8bfcbd7f9ebef5ee4ffe370cb03b1c8a2'/>
<id>urn:sha1:9699c9b8bfcbd7f9ebef5ee4ffe370cb03b1c8a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: log whether CSDs or SSDs are used at info level, not debug</title>
<updated>2020-03-02T17:43:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-02T17:43:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=def4395bd1ca2441b374ce53208cc5b2b000f015'/>
<id>urn:sha1:def4395bd1ca2441b374ce53208cc5b2b000f015</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: make CSD user configurable</title>
<updated>2020-03-02T17:42:49Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-02T17:42:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=22ce09eb44db887d32a5b3a88740939b7285c763'/>
<id>urn:sha1:22ce09eb44db887d32a5b3a88740939b7285c763</id>
<content type='text'>
The user can now configure the following:

* Whether to prefer CSDs or SSDs. But note that this is only a hint to
  the compositor - it may deny our request. Furthermore, not all
  compositors implement the decoration manager protocol, meaning CSDs
  will be used regardless of the user configuration (GNOME/mutter
  being the most prominent one).
* Title bar size and color, including transparency
* Border size and color, including transparency

Also drop support for rendering the CSDs inside the main surface.
</content>
</entry>
<entry>
<title>wayland: always update window-&gt;is_fullscreen, not just when using CSDs</title>
<updated>2020-02-29T16:24:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-29T16:24:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d6f0a47fb8f4392438e0210d8f9068183e054966'/>
<id>urn:sha1:d6f0a47fb8f4392438e0210d8f9068183e054966</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: don't resize when we're not mapped anywhere</title>
<updated>2020-02-29T14:46:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-29T14:46:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=32a3f567108236b14d811562c1e1f54ce4e29ae2'/>
<id>urn:sha1:32a3f567108236b14d811562c1e1f54ce4e29ae2</id>
<content type='text'>
Normally, we resize and update the font's DPI whenever our window
enters or leaves an output.

This is since a change in the outputs we're mapped on means the scale
factor to use, or the DPI to use for the fonts may have changed.

However, a special case is when we're removed from the last
output. This should only happen at shutdown, when we're un-mapping
ourselves.

In this case, we typically don't have a access to e.g. the PTMX
fd (often, the reason we're shutting down is because the client
exited). This resulted in (harmless) error messages when emitting the
TIOCSWINSZ event.

Since we're shutting down anyway, we can simply skip the resize and
everything. This gets rid of the error message, and also means we're
shutting down faster.
</content>
</entry>
<entry>
<title>input: csd: add a small delay before initiating a move</title>
<updated>2020-02-29T11:56:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-29T11:52:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=43b07b122a1fa460bdda3edc529726e3b6a6463d'/>
<id>urn:sha1:43b07b122a1fa460bdda3edc529726e3b6a6463d</id>
<content type='text'>
This ensures the user has time to double-click to toggle the maximized
state.
</content>
</entry>
<entry>
<title>wayland: remove all usages of wayl_terminal_from_surface()</title>
<updated>2020-02-29T11:13:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-29T11:13:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c917a74f487941fa16548261680484cb78e63189'/>
<id>urn:sha1:c917a74f487941fa16548261680484cb78e63189</id>
<content type='text'>
Use the 'user data' pointer from the wayland surface instead.
</content>
</entry>
<entry>
<title>wayland: store pointer to window instance in all surfaces</title>
<updated>2020-02-29T11:09:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-29T11:09:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=43c05518064d6b6dc9a24cf2bded216ab84508f7'/>
<id>urn:sha1:43c05518064d6b6dc9a24cf2bded216ab84508f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: configure: work around GNOME/mutter weirdness</title>
<updated>2020-02-28T17:43:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-28T17:43:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6ba476b3bdcd709574750f56fe7c002b9a55bfba'/>
<id>urn:sha1:6ba476b3bdcd709574750f56fe7c002b9a55bfba</id>
<content type='text'>
When resizing the window under mutter, mutter seems to expect a
configure ack *and* a surface commit *right* away, or things get out
of sync.

Unlike kwin, which is requires a commit for each configure ack, but is
fine with having the commit arrive later (after we've rendered it),
mutter is not.

I even tried delaying the configure ack until just before the commit,
but still no go.

So for now, detect when we're running under mutter and always do a
surface commit right away.

This can *not* be done on any other compositor as it breaks the CSD
and main surface synchronization; we've resized the CSDs, but not the
main surface.

I.e. this *should* not work, but for some reason is the *only* way to
make things work on mutter.

Interestingly, doing it any other way on mutter causes visual
glitches; window jumping around when resizing, or de-synchronized
CSDs/main surface.
</content>
</entry>
<entry>
<title>wayland: fix window size adjustment for CSDs placed outside main surface</title>
<updated>2020-02-28T17:42:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-28T17:42:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b69c9b5f58ce74831490ae2cd2377ed0e9a55cce'/>
<id>urn:sha1:b69c9b5f58ce74831490ae2cd2377ed0e9a55cce</id>
<content type='text'>
* Do this both in XDG configure, and when the decoration manager
  switches between CSDs/SSDs at run-time.

* Exclude CSD borders when we're maximized
</content>
</entry>
<entry>
<title>wayland: warn when compositor doesn't implement the decoration manager interface</title>
<updated>2020-02-28T17:37:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-28T17:37:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6c20abf279008e556932fdd60ec5f1893dc28143'/>
<id>urn:sha1:6c20abf279008e556932fdd60ec5f1893dc28143</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: request server side decorations</title>
<updated>2020-02-28T17:36:52Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-28T17:36:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7d021b5b379f87946b40775d45c893531d9efb06'/>
<id>urn:sha1:7d021b5b379f87946b40775d45c893531d9efb06</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: drop required wl_output interface version from 3 -&gt; 2</title>
<updated>2020-02-28T17:35:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-28T17:35:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3c7e17e8c1e46a14a18354eca2ef63e8b27bbcc9'/>
<id>urn:sha1:3c7e17e8c1e46a14a18354eca2ef63e8b27bbcc9</id>
<content type='text'>
We don't need version 3, and mutter 3.34 only implements version 2.
</content>
</entry>
<entry>
<title>wayland: resize main surface when enabling CSDs runtime</title>
<updated>2020-02-26T12:46:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-26T12:44:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=02fedfb2fc390d848cfe067895ad4617834416e1'/>
<id>urn:sha1:02fedfb2fc390d848cfe067895ad4617834416e1</id>
<content type='text'>
When we position CSDs inside the main surface, and CSDs are switched
on run-time, we need to force a grid resize, since the actual window
content will now be smaller.

Alternative solution: call resize with width/height increased, to
account for the CSDs. This would increase the window size, but would
keep the grid size fixed.
</content>
</entry>
<entry>
<title>wayland: track window maximized state</title>
<updated>2020-02-26T12:23:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-26T12:23:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5fbbd2f80edb13889267a7af6e75d2d47b92536d'/>
<id>urn:sha1:5fbbd2f80edb13889267a7af6e75d2d47b92536d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: don't adjust size when CSDs are positioned inside main surface</title>
<updated>2020-02-26T12:02:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-26T12:02:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=020ce607788523a5bc251076e0a7502b42d02240'/>
<id>urn:sha1:020ce607788523a5bc251076e0a7502b42d02240</id>
<content type='text'>
</content>
</entry>
</feed>
