view: update comments
These should have been moved in the previous commit
This commit is contained in:
parent
79dc9cc49a
commit
e4a3698d86
3 changed files with 3 additions and 5 deletions
|
@ -242,6 +242,9 @@ pub fn saveBuffers(self: *Self) void {
|
||||||
self.forEachSurface(saveBuffersIterator, &self.saved_buffers);
|
self.forEachSurface(saveBuffersIterator, &self.saved_buffers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// If this commit is in response to our configure and the
|
||||||
|
/// transaction code is tracking this configure, notify it.
|
||||||
|
/// Otherwise, apply the pending state immediately.
|
||||||
pub fn notifyConfiguredOrApplyPending(self: *Self) void {
|
pub fn notifyConfiguredOrApplyPending(self: *Self) void {
|
||||||
self.pending_serial = null;
|
self.pending_serial = null;
|
||||||
if (self.shouldTrackConfigure())
|
if (self.shouldTrackConfigure())
|
||||||
|
|
|
@ -257,9 +257,6 @@ fn handleCommit(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void {
|
||||||
view.surface_box = new_box;
|
view.surface_box = new_box;
|
||||||
|
|
||||||
if (s == self.wlr_xdg_surface.configure_serial) {
|
if (s == self.wlr_xdg_surface.configure_serial) {
|
||||||
// If this commit is in response to our configure and the
|
|
||||||
// transaction code is tracking this configure, notify it.
|
|
||||||
// Otherwise, apply the pending state immediately.
|
|
||||||
view.notifyConfiguredOrApplyPending();
|
view.notifyConfiguredOrApplyPending();
|
||||||
} else {
|
} else {
|
||||||
// If the client has not yet acked our configure, we need to send a
|
// If the client has not yet acked our configure, we need to send a
|
||||||
|
|
|
@ -215,8 +215,6 @@ fn handleCommit(listener: ?*c.wl_listener, data: ?*c_void) callconv(.C) void {
|
||||||
|
|
||||||
// See comment in XwaylandView.configure()
|
// See comment in XwaylandView.configure()
|
||||||
if (view.pending_serial != null) {
|
if (view.pending_serial != null) {
|
||||||
// If the view is part of the layout, notify the transaction code. If
|
|
||||||
// the view is floating or fullscreen apply the pending state immediately.
|
|
||||||
view.notifyConfiguredOrApplyPending();
|
view.notifyConfiguredOrApplyPending();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue